EmailMessageMashableActivityRules Class Reference

Inheritance diagram for EmailMessageMashableActivityRules:
MashableActivityRules

Public Member Functions

 resolveSearchAttributesDataByRelatedItemId ($relationItemId)
 resolveSearchAttributesDataByRelatedItemIds ($relationItemIds)
 resolveSearchAttributeDataForLatestActivities ($searchAttributeData)
 resolveSearchAttributeDataForAllLatestActivities ($searchAttributeData)
 getLatestActivitiesOrderByAttributeName ()
 getLatestActivityExtraDisplayStringByModel ($model)
 getSummaryContentTemplate ($ownedByFilter, $viewModuleClassName)
 renderRelatedModelsByImportanceContent (RedBeanModel $model)

Static Public Member Functions

static getSenderContent (EmailMessageSender $emailMessageSender, $additionalParams=array())
static getRecipientsContent (RedBeanOneToManyRelatedModels $recipients, $type=null)
static castDownItem (Item $item)

Detailed Description

Generic rules for the email message model.

Definition at line 40 of file EmailMessageMashableActivityRules.php.


Member Function Documentation

resolveSearchAttributesDataByRelatedItemId ( relationItemId  ) 

Given an item id of a related model, make a searchAttributesData array that includes that item id as a filter for the query.

Parameters:
integer $relationItemId

Reimplemented from MashableActivityRules.

Definition at line 42 of file EmailMessageMashableActivityRules.php.

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

Reimplemented from MashableActivityRules.

Definition at line 74 of file EmailMessageMashableActivityRules.php.

resolveSearchAttributeDataForLatestActivities ( searchAttributeData  ) 

Given a searchAttributeData array, add any extra filtering needed for the query based on the model specific requirements for what should be shown in a mashable activity feed.

Parameters:
array $searchAttributeData

Reimplemented from MashableActivityRules.

Definition at line 102 of file EmailMessageMashableActivityRules.php.

resolveSearchAttributeDataForAllLatestActivities ( searchAttributeData  ) 

Override if you need to filter specifically for showing all latest activities that are not filtered by a related model

Parameters:
$searchAttributeData 
Returns:
mixed

Reimplemented from MashableActivityRules.

Definition at line 108 of file EmailMessageMashableActivityRules.php.

getLatestActivitiesOrderByAttributeName (  ) 

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

Reimplemented from MashableActivityRules.

Definition at line 129 of file EmailMessageMashableActivityRules.php.

getLatestActivityExtraDisplayStringByModel ( model  ) 

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

Reimplemented from MashableActivityRules.

Definition at line 134 of file EmailMessageMashableActivityRules.php.

getSummaryContentTemplate ( ownedByFilter,
viewModuleClassName 
)

(non-PHPdoc)

See also:
MashableActivityRules::getSummaryContentTemplate()

Reimplemented from MashableActivityRules.

Definition at line 143 of file EmailMessageMashableActivityRules.php.

renderRelatedModelsByImportanceContent ( RedBeanModel model  ) 

Override to define how related models are displayed if at all.

Parameters:
RedBeanModel $model

Reimplemented from MashableActivityRules.

Definition at line 152 of file EmailMessageMashableActivityRules.php.


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