MashableUtil Class Reference

Static Public Member Functions

static createMashableInboxRulesByModel ($modelClassName)
static getModelDataForCurrentUserByInterfaceName ($interfaceClassName, $includeHavingRelatedItems=true)
static getUnreadCountForCurrentUserByModelClassName ($modelClassName)
static getUnreadCountMashableInboxForCurrentUser ()
static renderUnreadCountForDynamicLabelContent ()
static getSearchAttributeMetadataForMashableInboxByModelClassName ($modelClassNames, $filteredBy, $searchTerm= '')
static getSortAttributesByMashableInboxModelClassNames ($modelClassNames)
static renderSummaryContent (RedBeanModel $model)
static resolveContentTemplate ($template, $data)
static mergeMetadata ($firstMetadata, $secondMetadata, $isAnd=true)
static saveSelectedOptionsAsStickyData (MashableInboxForm $mashableInboxForm, $modelClassName)
static restoreSelectedOptionsAsStickyData ($modelClassName)
static resolveKeyByModuleAndModel ($moduleClassName, $modelClassName)

Static Protected Member Functions

static renderModelStringContent (RedBeanModel $model, $mashableInboxRules)
static renderModelCreationTimeContent (RedBeanModel $model, $mashableInboxRules)

Detailed Description

Definition at line 37 of file MashableUtil.php.


Member Function Documentation

static createMashableInboxRulesByModel ( modelClassName  )  [static]

Create the MashableInboxRules for the model

Parameters:
string $modelClassName
Returns:
MashableInboxRules

Definition at line 44 of file MashableUtil.php.

static getModelDataForCurrentUserByInterfaceName ( interfaceClassName,
includeHavingRelatedItems = true 
) [static]
Parameters:
String $interfaceClassName The name of the interface to check model implementation
Returns:
Array Contains the modelClassNames of models that implements the interface
Parameters:
string $interfaceClassName
bool $includeHavingRelatedItems
Returns:
array

Definition at line 61 of file MashableUtil.php.

static getUnreadCountForCurrentUserByModelClassName ( modelClassName  )  [static]
Parameters:
string $modelClassName
Returns:
int

Definition at line 94 of file MashableUtil.php.

static getSearchAttributeMetadataForMashableInboxByModelClassName ( modelClassNames,
filteredBy,
searchTerm = '' 
) [static]
Parameters:
array $modelClassNames
string $filteredBy
string $searchTerm
Returns:
array

Definition at line 123 of file MashableUtil.php.

static getSortAttributesByMashableInboxModelClassNames ( modelClassNames  )  [static]
Parameters:
array $modelClassNames
Returns:
array

Definition at line 150 of file MashableUtil.php.

static renderSummaryContent ( RedBeanModel model  )  [static]
Parameters:
RedBeanModel $model
Returns:
string

Definition at line 167 of file MashableUtil.php.

static resolveContentTemplate ( template,
data 
) [static]
Parameters:
string $template
array $data
Returns:
string

Definition at line 199 of file MashableUtil.php.

static mergeMetadata ( firstMetadata,
secondMetadata,
isAnd = true 
) [static]
Parameters:
array $firstMetadata
array $secondMetadata
bool $isAnd
Returns:
mixed

Definition at line 217 of file MashableUtil.php.

static saveSelectedOptionsAsStickyData ( MashableInboxForm mashableInboxForm,
modelClassName 
) [static]
Parameters:
MashableInboxForm $mashableInboxForm
string $modelClassName

Definition at line 259 of file MashableUtil.php.

static restoreSelectedOptionsAsStickyData ( modelClassName  )  [static]
Parameters:
string $modelClassName
Returns:
MashableInboxForm

Definition at line 271 of file MashableUtil.php.

static resolveKeyByModuleAndModel ( moduleClassName,
modelClassName 
) [static]
Parameters:
string $moduleClassName
string $modelClassName
Returns:
string

Definition at line 286 of file MashableUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Mar 23 07:10:27 2017