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

ListViewMergeUtil Class Reference

Static Public Member Functions

static resolveElementDuringFormLayoutRenderForListViewMerge (&$element, $preContentViewClass, $selectedModels, $primaryModel, $modelAttributeAndElementDataToMergeItemClass)
static setPrimaryModelForListViewMerge ($model, $getData)
static getSelectedModelsListForMerge ($modelClassName, $getData)
static processCopyRelationsAndDeleteNonPrimaryModelsInMerge ($primaryModel, $getData)
static resolveFormLayoutMetadataForOneColumnDisplay ($metadata)
static processCopyEmailActivity ($primaryModel, $selectedModel)

Static Protected Member Functions

static processAssignRelationsToMergedModelFromModelsToBeDeleted ($selectedModelsList, $primaryModel)
static processNonDerivedRelationsAssignment ($primaryModel, $selectedModel)
static processDerivedRelationsAssignment ($primaryModel, $selectedModel)

Detailed Description

Helper class for list view merge functionality

Definition at line 40 of file ListViewMergeUtil.php.


Member Function Documentation

static resolveElementDuringFormLayoutRenderForListViewMerge ( &$  element,
preContentViewClass,
selectedModels,
primaryModel,
modelAttributeAndElementDataToMergeItemClass 
) [static]

Resolve element during form layout render for list view merge

Parameters:
Element $element
string $preContentViewClass
array $selectedModels
RedBeanModel $primaryModel
string $modelAttributeAndElementDataToMergeItemClass

Definition at line 50 of file ListViewMergeUtil.php.

static setPrimaryModelForListViewMerge ( model,
getData 
) [static]

Sets primary model for the merge

Parameters:
ModelsListDuplicateMergedModelForm $model
array $getData data from $_GET

Definition at line 90 of file ListViewMergeUtil.php.

static getSelectedModelsListForMerge ( modelClassName,
getData 
) [static]

Gets selected models for merge

Parameters:
string $modelClassName
array $getData data from $_GET
Returns:
array

Definition at line 115 of file ListViewMergeUtil.php.

static processCopyRelationsAndDeleteNonPrimaryModelsInMerge ( primaryModel,
getData 
) [static]

Processes copying relations from non primary models to primary model and than deleting them

Parameters:
RedBeanModel $primaryModel
array $getData data from $_GET

Definition at line 137 of file ListViewMergeUtil.php.

static processAssignRelationsToMergedModelFromModelsToBeDeleted ( selectedModelsList,
primaryModel 
) [static, protected]

Process assignment of relations.

Parameters:
array $selectedModelsList
RedBeanModel $primaryModel

Definition at line 160 of file ListViewMergeUtil.php.

static processNonDerivedRelationsAssignment ( primaryModel,
selectedModel 
) [static, protected]

Process non derived relations assignment

Parameters:
RedBeanModel $primaryModel
RedBeanModel $selectedModel

Definition at line 184 of file ListViewMergeUtil.php.

static processDerivedRelationsAssignment ( primaryModel,
selectedModel 
) [static, protected]

Process derived relations assignment

Parameters:
RedBeanModel $primaryModel
RedBeanModel $selectedModel

Definition at line 227 of file ListViewMergeUtil.php.

static resolveFormLayoutMetadataForOneColumnDisplay ( metadata  )  [static]

Resolves form layout metadata for one column display

Parameters:
array $metadata
Returns:
array

Definition at line 263 of file ListViewMergeUtil.php.

static processCopyEmailActivity ( primaryModel,
selectedModel 
) [static]

Process copy email activity.

Parameters:
RedBeanModel $primaryModel
RedBeanModel $selectedModel

Definition at line 308 of file ListViewMergeUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Jan 23 07:10:26 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