Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

MashableActivityRules Class Reference

Inheritance diagram for MashableActivityRules:
ActivityMashableActivityRules ConversationMashableActivityRules EmailMessageMashableActivityRules MissionMashableActivityRules MeetingMashableActivityRules NoteMashableActivityRules TaskMashableActivityRules

Public Member Functions

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

Static Public Member Functions

static resolveSearchAttributesDataByOwnedByFilter (&$searchAttributesData, $ownedByFilter)

Static Protected Member Functions

static resolveStringValueModelsDataToStringContent ($modelsAndStringData)
static resolveSearchAttributesDataByOwnedByFilterClauses (&$searchAttributesData, $userId)

Detailed Description

Class to help interacting with classes that implement the MashableActivityInterface. An example is the latest activity view which contains a mashable activity feed for things that have occured in the past. Either related to a specific model or generically across the entire system.

Definition at line 42 of file MashableActivityRules.php.


Member Function Documentation

resolveSearchAttributesDataByRelatedItemId ( relationItemId  )  [abstract]

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 in ActivityMashableActivityRules, ConversationMashableActivityRules, EmailMessageMashableActivityRules, and MissionMashableActivityRules.

resolveSearchAttributesDataByRelatedItemIds ( relationItemIds  )  [abstract]

Given multiple item ids of related models, make a searchAttributesData array that includes these item ids as filters for the query.

Parameters:
array $relationItemIds

Reimplemented in ActivityMashableActivityRules, ConversationMashableActivityRules, EmailMessageMashableActivityRules, and MissionMashableActivityRules.

resolveSearchAttributeDataForLatestActivities ( searchAttributeData  )  [abstract]

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 in ActivityMashableActivityRules, ConversationMashableActivityRules, EmailMessageMashableActivityRules, MeetingMashableActivityRules, MissionMashableActivityRules, and TaskMashableActivityRules.

getLatestActivitiesOrderByAttributeName (  )  [abstract]

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

Reimplemented in ActivityMashableActivityRules, ConversationMashableActivityRules, EmailMessageMashableActivityRules, and MissionMashableActivityRules.

getLatestActivityExtraDisplayStringByModel ( model  )  [abstract]

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

Reimplemented in ActivityMashableActivityRules, ConversationMashableActivityRules, EmailMessageMashableActivityRules, MissionMashableActivityRules, and NoteMashableActivityRules.

renderRelatedModelsByImportanceContent ( RedBeanModel model  ) 

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

Parameters:
RedBeanModel $model

Reimplemented in ActivityMashableActivityRules, and EmailMessageMashableActivityRules.

Definition at line 79 of file MashableActivityRules.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 in EmailMessageMashableActivityRules.

Definition at line 89 of file MashableActivityRules.php.

getSummaryContentTemplate ( ownedByFilter,
viewModuleClassName 
)

Override to customize summary content.

Parameters:
string $ownedByFilter
string $viewModuleClassName

Reimplemented in ConversationMashableActivityRules, EmailMessageMashableActivityRules, MeetingMashableActivityRules, MissionMashableActivityRules, NoteMashableActivityRules, and TaskMashableActivityRules.

Definition at line 99 of file MashableActivityRules.php.

static resolveStringValueModelsDataToStringContent ( modelsAndStringData  )  [static, protected]
Parameters:
array $modelsAndStringData
Returns:
null|string

Definition at line 118 of file MashableActivityRules.php.

static resolveSearchAttributesDataByOwnedByFilter ( &$  searchAttributesData,
ownedByFilter 
) [static]
Parameters:
array $searchAttributesData
$ownedByFilter 

Definition at line 137 of file MashableActivityRules.php.

static resolveSearchAttributesDataByOwnedByFilterClauses ( &$  searchAttributesData,
userId 
) [static, protected]
Parameters:
array $searchAttributesData
int $userId

Reimplemented in MissionMashableActivityRules.

Definition at line 161 of file MashableActivityRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jan 15 07:10:26 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8