VuFind API Documentation

UserAccountService
in package
implements DbServiceAwareInterface Uses DbServiceAwareTrait

User account service

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

Interfaces, Classes, Traits and Enums

DbServiceAwareInterface
Marker interface for classes that depend on the \VuFind\Db\Service\PluginManager

Table of Contents

$dbServiceManager  : PluginManager
Database service plugin manager
$favoritesService  : FavoritesService
__construct()  : mixed
Constructor
getDbService()  : T
Get a database service object.
getDbServiceManager()  : PluginManager
Get the service plugin manager. Throw an exception if it is missing.
purgeUserData()  : void
Destroy the user.
setDbServiceManager()  : void
Set the service plugin manager.

Properties

Methods

getDbService()

Get a database service object.

public getDbService(class-string<\VuFind\Db\Service\T> $name) : T
Parameters
$name : class-string<\VuFind\Db\Service\T>

Name of service to retrieve

Tags
template

T

Return values
T

purgeUserData()

Destroy the user.

public purgeUserData(UserEntityInterface $user[, bool $removeComments = true ][, bool $removeRatings = true ]) : void
Parameters
$user : UserEntityInterface

User to delete

$removeComments : bool = true

Whether to remove user's comments

$removeRatings : bool = true

Whether to remove user's ratings

Return values
void

Search results