VuFind API Documentation

Favorites extends AbstractPlugin
in package

Action helper to perform favorites-related actions

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Main Page

deprecated

Use \VuFind\Favorites\FavoritesService

Table of Contents

$favoritesService  : FavoritesService
__construct()  : mixed
Constructor
delete()  : void
Delete a group of favorites.
saveBulk()  : array<string|int, mixed>
Save a group of records to the user's favorites.

Properties

Methods

delete()

Delete a group of favorites.

public delete(array<string|int, mixed> $ids, mixed $listID, UserEntityInterface $user) : void
Parameters
$ids : array<string|int, mixed>

Array of IDs in source|id format.

$listID : mixed

ID of list to delete from (null for all lists)

$user : UserEntityInterface

Logged in user

Tags
deprecated

Use \VuFind\Favorites\FavoritesService::deleteFavorites()

Return values
void

saveBulk()

Save a group of records to the user's favorites.

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

Array with some or all of these keys:

  • ids - Array of IDs in source|id format
  • mytags - Unparsed tag string to associate with record (optional)
  • list - ID of list to save record into (omit to create new list)
$user : UserEntityInterface

The user saving the record

Tags
deprecated

Use \VuFind\Favorites\FavoritesService::saveRecordsToFavorites()

Return values
array<string|int, mixed>

list information

Search results