ActivityMashableActivityRules Class Reference

Inheritance diagram for ActivityMashableActivityRules:
MashableActivityRules MeetingMashableActivityRules NoteMashableActivityRules TaskMashableActivityRules

Public Member Functions

 resolveSearchAttributesDataByRelatedItemId ($relationItemId)
 resolveSearchAttributesDataByRelatedItemIds ($relationItemIds)
 resolveSearchAttributeDataForLatestActivities ($searchAttributeData)
 getLatestActivitiesOrderByAttributeName ()
 getLatestActivityExtraDisplayStringByModel ($model)
 renderRelatedModelsByImportanceContent (RedBeanModel $model)

Static Protected Member Functions

static getActivityItemsStringContentByModelClassName (RedBeanModel $model, $castDownModelClassName, $stateMetadataAdapter= 'StateMetadataAdapter')
static getFirstActivityItemStringContent ($relationModelClassNames, RedBeanModel $model)

Detailed Description

Generic rules for any model that extends the Activity class.

Definition at line 40 of file ActivityMashableActivityRules.php.


Member Function Documentation

resolveSearchAttributesDataByRelatedItemId ( relationItemId  ) 
Parameters:
int $relationItemId
Returns:
array

Reimplemented from MashableActivityRules.

Definition at line 46 of file ActivityMashableActivityRules.php.

resolveSearchAttributesDataByRelatedItemIds ( relationItemIds  ) 
Parameters:
array $relationItemIds
Returns:
array

Reimplemented from MashableActivityRules.

Definition at line 65 of file ActivityMashableActivityRules.php.

resolveSearchAttributeDataForLatestActivities ( searchAttributeData  ) 
Parameters:
array $searchAttributeData
Returns:
array

Reimplemented from MashableActivityRules.

Reimplemented in MeetingMashableActivityRules, and TaskMashableActivityRules.

Definition at line 84 of file ActivityMashableActivityRules.php.

getLatestActivitiesOrderByAttributeName (  ) 

For a given model, what attribute is used for the ordering in a latest activity feed.

Reimplemented from MashableActivityRules.

Definition at line 90 of file ActivityMashableActivityRules.php.

getLatestActivityExtraDisplayStringByModel ( model  ) 

Override if you want to display anything extra in the view for a particular model.

Reimplemented from MashableActivityRules.

Reimplemented in NoteMashableActivityRules.

Definition at line 98 of file ActivityMashableActivityRules.php.

renderRelatedModelsByImportanceContent ( RedBeanModel model  ) 

Renders related models. But only renders one type of related model given that the $model supplied is connected to more than one type of activity item. There is an order of importance that is checked starting with Account, then Contact, then Opportunity. If none are found, then it grabs the first available.

See also:
getActivityItemsStringContentByModelClassName
Parameters:
RedBeanModel $model

Reimplemented from MashableActivityRules.

Definition at line 109 of file ActivityMashableActivityRules.php.

static getActivityItemsStringContentByModelClassName ( RedBeanModel model,
castDownModelClassName,
stateMetadataAdapter = 'StateMetadataAdapter' 
) [static, protected]
Parameters:
RedBeanModel $model
string $castDownModelClassName
Returns:
null|string

Definition at line 143 of file ActivityMashableActivityRules.php.

static getFirstActivityItemStringContent ( relationModelClassNames,
RedBeanModel model 
) [static, protected]
Parameters:
array $relationModelClassNames
RedBeanModel $model
Returns:
string

Definition at line 181 of file ActivityMashableActivityRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Aug 23 07:10:22 2017