All Data Structures Functions Variables Pages
Public Member Functions | Static Protected Member Functions
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)
 
- Public Member Functions inherited from MashableActivityRules
 resolveSearchAttributesDataByRelatedItemId ($relationItemId)
 
 resolveSearchAttributesDataByRelatedItemIds ($relationItemIds)
 
 resolveSearchAttributeDataForLatestActivities ($searchAttributeData)
 
 getLatestActivitiesOrderByAttributeName ()
 
 getLatestActivityExtraDisplayStringByModel ($model)
 
 renderRelatedModelsByImportanceContent (RedBeanModel $model)
 
 resolveSearchAttributeDataForAllLatestActivities ($searchAttributeData)
 
 getSummaryContentTemplate ($ownedByFilter, $viewModuleClassName)
 
 resolveAdditionalSearchAttributesDataByModelClassNameAndRelatedItemIds ($modelClassName, $relationItemIds, $ownedByFilter, $shouldResolveSearchAttributeDataForLatestActivities, &$modelClassNamesAndSearchAttributeData)
 

Static Protected Member Functions

static getActivityItemsStringContentByModelClassName (RedBeanModel $model, $castDownModelClassName, $stateMetadataAdapter= 'StateMetadataAdapter')
 
static getFirstActivityItemStringContent ($relationModelClassNames, RedBeanModel $model)
 
- Static Protected Member Functions inherited from MashableActivityRules
static resolveStringValueModelsDataToStringContent ($modelsAndStringData)
 
static resolveSearchAttributesDataByOwnedByFilterClauses (&$searchAttributesData, $userId)
 

Additional Inherited Members

- Static Public Member Functions inherited from MashableActivityRules
static resolveSearchAttributesDataByOwnedByFilter (&$searchAttributesData, $ownedByFilter)
 
static resolveSearchAttributesDataStructure (&$searchAttributesDataStructure)
 

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

Definition at line 46 of file ActivityMashableActivityRules.php.

resolveSearchAttributesDataByRelatedItemIds (   $relationItemIds)
Parameters
array$relationItemIds
Returns
array

Definition at line 65 of file ActivityMashableActivityRules.php.

resolveSearchAttributeDataForLatestActivities (   $searchAttributeData)
Parameters
array$searchAttributeData
Returns
array

Definition at line 84 of file ActivityMashableActivityRules.php.

getLatestActivityExtraDisplayStringByModel (   $model)

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

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

Definition at line 109 of file ActivityMashableActivityRules.php.

static getActivityItemsStringContentByModelClassName ( RedBeanModel  $model,
  $castDownModelClassName,
  $stateMetadataAdapter = 'StateMetadataAdapter' 
)
staticprotected
Parameters
RedBeanModel$model
string$castDownModelClassName
Returns
null|string

Definition at line 143 of file ActivityMashableActivityRules.php.

static getFirstActivityItemStringContent (   $relationModelClassNames,
RedBeanModel  $model 
)
staticprotected
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:
Generated on Sun Jan 26 2020 07:10:26