Public Member Functions | |
__construct (RedBeanModel $model, $attribute, $element, RedBeanModel $primaryModel, $position) | |
getAttributeRenderedContent () | |
getAttributeInputIdsForOnClick () | |
Protected Member Functions | |
getNonDerivedInputId () | |
getDerivedInputId ($attribute, $relatedAttribute) | |
decorateContent ($content) | |
resolveDisplayedValueForRelatedAttribute ($attribute, $relatedAttribute) | |
Protected Attributes | |
$model | |
$attribute | |
$element | |
$primaryModel | |
$position |
Acts as a helper model to retrieve model attribute and element related information
Definition at line 40 of file ModelAttributeAndElementDataToMergeItem.php.
__construct | ( | RedBeanModel $ | model, | |
$ | attribute, | |||
$ | element, | |||
RedBeanModel $ | primaryModel, | |||
$ | position | |||
) |
Constructor for the class.
type | $model | |
type | $attribute | |
type | $element | |
type | $primaryModel |
Definition at line 79 of file ModelAttributeAndElementDataToMergeItem.php.
getAttributeRenderedContent | ( | ) |
Gets attribute rendered content
Definition at line 95 of file ModelAttributeAndElementDataToMergeItem.php.
getAttributeInputIdsForOnClick | ( | ) |
Get attribute values and input ids for on click event
Definition at line 104 of file ModelAttributeAndElementDataToMergeItem.php.
getNonDerivedInputId | ( | ) | [protected] |
Get input id for non derived attribute
Definition at line 149 of file ModelAttributeAndElementDataToMergeItem.php.
getDerivedInputId | ( | $ | attribute, | |
$ | relatedAttribute | |||
) | [protected] |
Gets input id for the derived attribute
string | $attribute | |
string | $relatedAttribute |
Definition at line 160 of file ModelAttributeAndElementDataToMergeItem.php.
decorateContent | ( | $ | content | ) | [protected] |
Decorates the content
string | $content |
Definition at line 197 of file ModelAttributeAndElementDataToMergeItem.php.
resolveDisplayedValueForRelatedAttribute | ( | $ | attribute, | |
$ | relatedAttribute | |||
) | [protected] |
Resolves value for related attribute
string | $attribute | |
string | $relatedAttribute |
Reimplemented in ContactModelAttributeAndElementDataToMergeItem, and LeadModelAttributeAndElementDataToMergeItem.
Definition at line 274 of file ModelAttributeAndElementDataToMergeItem.php.