All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes
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

Definition at line 324 of file ModelAttributeAndElementDataToMergeItem.php.


The documentation for this class was generated from the following file:
Generated on Wed Jun 3 2020 07:10:54