Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

DynamicSearchUtil Class Reference

Static Public Member Functions

static getSearchableAttributesAndLabels ($viewClassName, $modelClassName)
static getCellElement ($viewClassName, $modelClassName, $elementName)
static resolveAndAddViewDefinedNestedAttributes ($model, $viewClassName, &$attributeIndexOrDerivedTypeAndLabels)
static renderDynamicSearchAttributeInput ($viewClassName, $modelClassName, $formModelClassName, $rowNumber, $attributeIndexOrDerivedType, $searchAttributes=array(), $suffix=null)
static renderDynamicSearchRowContent ($viewClassName, $modelClassName, $formModelClassName, $rowNumber, $attributeIndexOrDerivedType, $inputContent, $suffix=null, $renderAsAjax=false)
static resolveDynamicSearchClausesForModelIdsNeedingToBeItemIds ($modelClassName, &$dynamicClauses)

Static Protected Member Functions

static makeDefinedNestedAttributeIndexOrDerivedTypeRecursively ($model, &$attributeIndexOrDerivedLabel, $definedNestedAttribute)

Detailed Description

Helper class for working with advanced search panel.

Definition at line 40 of file DynamicSearchUtil.php.


Member Function Documentation

static resolveDynamicSearchClausesForModelIdsNeedingToBeItemIds ( modelClassName,
&$  dynamicClauses 
) [static]

This function is used only for API calls. Because for some relations, we are using Item model, which is hidden in API call, so we let API clients to provide us modelClassName and modelId, and this util will convert them into Item id. Recoursevly go over all clauses, and check if there are MANY-MANY relations with Item model. If yes, then convert modelVlassName and modelId, into itemId.

Parameters:
string $modelClassName
array $dynamicClauses

Definition at line 314 of file DynamicSearchUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Jan 24 07:10:25 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8