ModelAttributeAndElementDataToMergeItem Class Reference

Inheritance diagram for ModelAttributeAndElementDataToMergeItem:
AccountModelAttributeAndElementDataToMergeItem ContactModelAttributeAndElementDataToMergeItem LeadModelAttributeAndElementDataToMergeItem

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

Detailed Description

Acts as a helper model to retrieve model attribute and element related information

Definition at line 40 of file ModelAttributeAndElementDataToMergeItem.php.


Constructor & Destructor Documentation

__construct ( RedBeanModel model,
attribute,
element,
RedBeanModel primaryModel,
position 
)

Constructor for the class.

Parameters:
type $model
type $attribute
type $element
type $primaryModel

Definition at line 79 of file ModelAttributeAndElementDataToMergeItem.php.


Member Function Documentation

getAttributeRenderedContent (  ) 

Gets attribute rendered content

Returns:
string

Definition at line 95 of file ModelAttributeAndElementDataToMergeItem.php.

getAttributeInputIdsForOnClick (  ) 

Get attribute values and input ids for on click event

Returns:
array

Definition at line 104 of file ModelAttributeAndElementDataToMergeItem.php.

getNonDerivedInputId (  )  [protected]

Get input id for non derived attribute

Returns:
string

Definition at line 149 of file ModelAttributeAndElementDataToMergeItem.php.

getDerivedInputId ( attribute,
relatedAttribute 
) [protected]

Gets input id for the derived attribute

Parameters:
string $attribute
string $relatedAttribute
Returns:
string

Definition at line 160 of file ModelAttributeAndElementDataToMergeItem.php.

decorateContent ( content  )  [protected]

Decorates the content

Parameters:
string $content
Returns:
string

Definition at line 197 of file ModelAttributeAndElementDataToMergeItem.php.

resolveDisplayedValueForRelatedAttribute ( attribute,
relatedAttribute 
) [protected]

Resolves value for related attribute

Parameters:
string $attribute
string $relatedAttribute
Returns:
string

Reimplemented in ContactModelAttributeAndElementDataToMergeItem, and LeadModelAttributeAndElementDataToMergeItem.

Definition at line 274 of file ModelAttributeAndElementDataToMergeItem.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Mar 24 07:10:28 2017