InjectOnCampusListener
in package
Uses
AuthorizationServiceAwareTrait
OnCampus listener.
This listener detects whether a user is on campus or not.
Tags
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
$isOnCampus
Is user on campus or not?
protected
bool
$isOnCampus
$permissionHandler
Primo Permission Handler.
protected
PrimoPermissionHandler
$permissionHandler
Methods
__construct()
Constructor.
public
__construct([PrimoPermissionHandler $pph = null ]) : void
Parameters
- $pph : PrimoPermissionHandler = null
-
Primo Permission Handler
Return values
void —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 —setPermissionHandler()
Constructor.
public
setPermissionHandler(PrimoPermissionHandler $pph) : void
Parameters
- $pph : PrimoPermissionHandler
-
Primo Permission Handler
Return values
void —getOnCampus()
Determines, which value is needed for the onCampus parameter
protected
getOnCampus() : bool