Method |
Description |
|
__construct ( View $view, PermissionService $permissionService ) |
ViewService constructor. |
|
add ( Entity $entity ) : integer |
Add a view to the given entity. |
|
getPopular ( integer $count = 10, integer $page, boolean | false | array $filterModel = false ) |
Get the entities with the most views. |
|
getUserRecentlyViewed ( integer $count = 10, integer $page, Entity | boolean $filterModel = false ) : mixed |
Get all recently viewed entities for the current user. |
|
resetAll ( ) |
Reset all view counts by deleting all views. |
|