Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields | Static Protected Member Functions
AuditEventsRecentlyViewedUtil Class Reference

Static Public Member Functions

static getRecentlyViewedAjaxContentByUser (User $user, $count)
 
static getRecentlyViewedItemsByUser (User $user, $count)
 
static resolveNewRecentlyViewedModel ($moduleName, RedBeanModel $model, $count)
 
static deleteModelFromRecentlyViewed ($moduleName, RedBeanModel $model)
 

Data Fields

const RECENTLY_VIEWED_COUNT = 10
 

Static Protected Member Functions

static getRouteByAuditEvent (AuditEvent $auditEvent, $moduleClassName)
 
static getRecentlyViewedByUser (User $user, $count)
 
static getRouteByRecentlyViewed ($moduleClassName, $modelId)
 
static stripTagsAndMultipleByteEncode ($moduleName)
 

Detailed Description

Helper class to render content for a list of recently viewed items.

Definition at line 40 of file AuditEventsRecentlyViewedUtil.php.

Member Function Documentation

static getRecentlyViewedAjaxContentByUser ( User  $user,
  $count 
)
static

Get the content for displaying recently viewed information via an ajax call.

See Also
RecentlyViewedView
Parameters
User$user
int$count
Returns
null|string

Definition at line 51 of file AuditEventsRecentlyViewedUtil.php.

static getRecentlyViewedItemsByUser ( User  $user,
  $count 
)
static

Get the recently viewed models as items which include a link and a moduleClassName.

See Also
RecentlyViewedView
Parameters
User$user
int$count
Returns
array

Definition at line 84 of file AuditEventsRecentlyViewedUtil.php.

static getRouteByAuditEvent ( AuditEvent  $auditEvent,
  $moduleClassName 
)
staticprotected

Given an AuditEvent, build a route to the event's model's details action.

Parameters
AuditEvent$auditEvent
string$moduleClassName
Returns
mixed

Definition at line 114 of file AuditEventsRecentlyViewedUtil.php.

static getRecentlyViewedByUser ( User  $user,
  $count 
)
staticprotected

Given an user, get the recently viewed moduleClassName and modelId limited by count

Parameters
User$user
integer$count
Returns
array($moduleClassName, $modelId)

Definition at line 127 of file AuditEventsRecentlyViewedUtil.php.

static getRouteByRecentlyViewed (   $moduleClassName,
  $modelId 
)
staticprotected

Returns the url for the details view of a modelId on the moduleClassName

Parameters
string$moduleClassName
integer$modelId
Returns
string

Definition at line 144 of file AuditEventsRecentlyViewedUtil.php.

static resolveNewRecentlyViewedModel (   $moduleName,
RedBeanModel  $model,
  $count 
)
static
Parameters
$moduleName
RedBeanModel$model
int$count

Definition at line 157 of file AuditEventsRecentlyViewedUtil.php.

static deleteModelFromRecentlyViewed (   $moduleName,
RedBeanModel  $model 
)
static
Parameters
$moduleName
RedBeanModel$model

Definition at line 192 of file AuditEventsRecentlyViewedUtil.php.


The documentation for this class was generated from the following file:
Generated on Tue Jul 14 2020 07:10:40
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.