Table of Contents
Properties
-
$cache
: SessionPermissionCache
-
$logger
: Logger
-
$mySql
: MySql
Methods
-
__construct()
: mixed
-
create()
: int
-
delete()
: void
-
getActionId()
: int|null
-
getAll()
: array<string|int, mixed>
-
getUsage()
: array<string|int, mixed>
-
isInUse()
: bool
__construct()
public
__construct(MySql $mySql, SessionPermissionCache $cache, Logger $logger) : mixed
Parameters
-
$mySql
: MySql
-
-
$cache
: SessionPermissionCache
-
-
$logger
: Logger
-
create()
public
create(string $action[, string $desctioption = '' ]) : int
Parameters
-
$action
: string
-
-
$desctioption
: string
= ''
-
-
throws
-
Throwable
delete()
public
delete(string $action[, bool $force = false ]) : void
Parameters
-
$action
: string
-
-
$force
: bool
= false
-
-
throws
-
RuntimeException
-
throws
-
Throwable
getActionId()
public
getActionId(string $action) : int|null
Parameters
-
$action
: string
-
getAll()
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed>
getUsage()
public
getUsage(string $action) : array<string|int, mixed>
Parameters
-
$action
: string
-
Return values
array<string|int, mixed>
isInUse()
private
isInUse(int $actionId) : bool
Parameters
-
$actionId
: int
-