VuFind API Documentation

InjectOnCampusListener
in package
Uses AuthorizationServiceAwareTrait

OnCampus listener.

This listener detects whether a user is on campus or not.

Tags
category

VuFind

author

Oliver Goldschmidt o.goldschmidt@tuhh.de

license

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

link

Main Site

Table of Contents

$isOnCampus  : bool
Is user on campus or not?
$permissionHandler  : PrimoPermissionHandler
Primo Permission Handler.
__construct()  : void
Constructor.
attach()  : void
Attach listener to shared event manager.
onSearchPre()  : EventInterface
Set up onCampus Listener.
setPermissionHandler()  : void
Constructor.
getOnCampus()  : bool
Determines, which value is needed for the onCampus parameter

Properties

Methods

attach()

Attach listener to shared event manager.

public attach(SharedEventManagerInterface $manager) : void
Parameters
$manager : SharedEventManagerInterface

Shared event manager

Return values
void

onSearchPre()

Set up onCampus Listener.

public onSearchPre(EventInterface $event) : EventInterface
Parameters
$event : EventInterface

Event

Return values
EventInterface

getOnCampus()

Determines, which value is needed for the onCampus parameter

protected getOnCampus() : bool
Return values
bool

Search results