VuFind API Documentation

Permission extends AbstractHelper
in package

Permission helper

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

author

Oliver Goldschmidt o.goldschmidt@tuhh.de

license

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

link

Wiki

Table of Contents

$permissionDeniedManager  : PermissionDeniedManager
PermissionDenied manager for behavior on denied permissions
$permissionManager  : PermissionManager
Permission manager to decide if a permission has been granted or not
__construct()  : mixed
Constructor
allowDisplay()  : bool
Determine if a local block inside the template should be displayed
getAlternateContent()  : string
Get content to display in place of blocked content
isAuthorized()  : bool
Determine if the current user is authorized for a permission.

Properties

$permissionManager

Permission manager to decide if a permission has been granted or not

protected PermissionManager $permissionManager

Methods

allowDisplay()

Determine if a local block inside the template should be displayed

public allowDisplay(string $context) : bool
Parameters
$context : string

Name of the permission rule

Return values
bool

getAlternateContent()

Get content to display in place of blocked content

public getAlternateContent(string $context) : string
Parameters
$context : string

Name of the permission rule

Return values
string

isAuthorized()

Determine if the current user is authorized for a permission.

public isAuthorized(string $context) : bool
Parameters
$context : string

Name of the permission rule

Return values
bool

Search results