InsecureCookie
in package
implements
PermissionProviderInterface
Uses
LoggerAwareTrait
Insecure cookie permission provider for VuFind.
Tags
Interfaces, Classes, Traits and Enums
- PermissionProviderInterface
- Permission provider interface
Table of Contents
- $cookieManager : CookieManager
- __construct() : mixed
- Constructor
- getPermissions() : array<string|int, mixed>
- Return an array of roles which may be granted the permission based on the options.
- debug() : void
- Log a debug message.
- log() : void
- Send a message to the logger.
- logError() : void
- Log an error message.
- logWarning() : void
- Log a warning message.
Properties
$cookieManager
protected
CookieManager
$cookieManager
Methods
__construct()
Constructor
public
__construct(CookieManager $cookieManager) : mixed
Parameters
- $cookieManager : CookieManager
-
Cookie manager
Return values
mixed —getPermissions()
Return an array of roles which may be granted the permission based on the options.
public
getPermissions(mixed $options) : array<string|int, mixed>
Parameters
- $options : mixed
-
Options (cookieNames) provided from configuration.
Return values
array<string|int, mixed> —debug()
Log a debug message.
protected
debug(string $msg[, array<string|int, mixed> $context = [] ][, bool $prependClass = true ]) : void
Parameters
- $msg : string
-
Log message
- $context : array<string|int, mixed> = []
-
Log context
- $prependClass : bool = true
-
Prepend class name to message?
Return values
void —log()
Send a message to the logger.
protected
log(string $level, string $message[, array<string|int, mixed> $context = [] ][, bool $prependClass = false ]) : void
Parameters
- $level : string
-
Log level
- $message : string
-
Log message
- $context : array<string|int, mixed> = []
-
Log context
- $prependClass : bool = false
-
Prepend class name to message?
Return values
void —logError()
Log an error message.
protected
logError(string $msg[, array<string|int, mixed> $context = [] ][, bool $prependClass = true ]) : void
Parameters
- $msg : string
-
Log message
- $context : array<string|int, mixed> = []
-
Log context
- $prependClass : bool = true
-
Prepend class name to message?
Return values
void —logWarning()
Log a warning message.
protected
logWarning(string $msg[, array<string|int, mixed> $context = [] ][, bool $prependClass = true ]) : void
Parameters
- $msg : string
-
Log message
- $context : array<string|int, mixed> = []
-
Log context
- $prependClass : bool = true
-
Prepend class name to message?