PHP Class BookStack\Services\ViewService

Afficher le fichier Open project: ssddanbrown/bookstack

Protected Properties

Свойство Type Description
$permissionService
$user
$view

Méthodes publiques

Méthode 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.

Method Details

__construct() public méthode

ViewService constructor.
public __construct ( View $view, PermissionService $permissionService )
$view BookStack\View
$permissionService PermissionService

add() public méthode

Add a view to the given entity.
public add ( Entity $entity ) : integer
$entity BookStack\Entity
Résultat integer

getPopular() public méthode

Get the entities with the most views.
public getPopular ( integer $count = 10, integer $page, boolean | false | array $filterModel = false )
$count integer
$page integer
$filterModel boolean | false | array

getUserRecentlyViewed() public méthode

Get all recently viewed entities for the current user.
public getUserRecentlyViewed ( integer $count = 10, integer $page, Entity | boolean $filterModel = false ) : mixed
$count integer
$page integer
$filterModel BookStack\Entity | boolean
Résultat mixed

resetAll() public méthode

Reset all view counts by deleting all views.
public resetAll ( )

Property Details

$permissionService protected_oe property

protected $permissionService

$user protected_oe property

protected $user

$view protected_oe property

protected $view