VuFind API Documentation

UserList extends AbstractHelper
in package

List view helper

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

$favoritesService  : FavoritesService
$mode  : string
$userListService  : UserListServiceInterface
__construct()  : mixed
Constructor
getMode()  : string
Get mode
getUserListsAndCountsByUser()  : array<string|int, mixed>
Get lists with counts for the provided user.
lastUsed()  : mixed
Retrieve the ID of the last list that was accessed, if any.
userCanEditList()  : bool
Is the provided user allowed to edit the provided list?

Properties

$mode

protected string $mode = 'enabled'

Methods

getMode()

Get mode

public getMode() : string
Return values
string

getUserListsAndCountsByUser()

Get lists with counts for the provided user.

public getUserListsAndCountsByUser(UserEntityInterface $user) : array<string|int, mixed>
Parameters
$user : UserEntityInterface

User owning lists

Return values
array<string|int, mixed>

lastUsed()

Retrieve the ID of the last list that was accessed, if any.

public lastUsed() : mixed
Return values
mixed

User_list ID (if set) or null (if not available).

Search results