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 Mon Mar 27 07:10:26 2017