Resource
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : int
- delete() : void
- getAll() : array<string|int, mixed>
- getResourceId() : int|null
- getUsage() : array<string|int, mixed>
- isInUse() : bool
Properties
$cache
private
SessionPermissionCache
$cache
$logger
private
Logger
$logger
$mySql
private
MySql
$mySql
Methods
__construct()
public
__construct(MySql $mySql, SessionPermissionCache $cache, Logger $logger) : mixed
Parameters
- $mySql : MySql
- $cache : SessionPermissionCache
- $logger : Logger
create()
public
create(string $resource[, string $description = '' ]) : int
Parameters
- $resource : string
- $description : string = ''
Tags
Return values
intdelete()
public
delete(string $resource[, bool $force = false ]) : void
Parameters
- $resource : string
- $force : bool = false
Tags
getAll()
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed>getResourceId()
public
getResourceId(string $resource) : int|null
Parameters
- $resource : string
Return values
int|nullgetUsage()
public
getUsage(string $resource) : array<string|int, mixed>
Parameters
- $resource : string
Return values
array<string|int, mixed>isInUse()
private
isInUse(int $resourceId) : bool
Parameters
- $resourceId : int