Méthode |
Description |
|
__construct ( Activity $activity, PermissionService $permissionService ) |
ActivityService constructor. |
|
add ( Entity $entity, $activityKey, integer $bookId, boolean $extra = false ) |
Add activity data to database. |
|
addMessage ( $activityKey, integer $bookId, boolean | false $extra = false ) |
Adds a activity history with a message & without binding to a entity. |
|
entityActivity ( Entity $entity, integer $count = 20, integer $page ) : array |
Gets the latest activity for an entity, Filtering out similar
items to prevent a message activity list. |
|
latest ( integer $count = 20, integer $page ) : array |
Gets the latest activity. |
|
removeEntity ( Entity $entity ) : mixed |
Removes the entity attachment from each of its activities
and instead uses the 'extra' field with the entities name. |
|
userActivity ( $user, integer $count = 20, integer $page ) : array |
Get latest activity for a user, Filtering out similar
items. |
|