Documentation

Resource
in package

FinalYes

Table of Contents

Properties

$cache  : SessionPermissionCache
$logger  : Logger
$mySql  : MySql

Methods

__construct()  : mixed
create()  : int
delete()  : void
getAll()  : array<string|int, mixed>
getResourceId()  : int|null
getUsage()  : array<string|int, mixed>
isInUse()  : bool

Properties

Methods

create()

public create(string $resource[, string $description = '' ]) : int
Parameters
$resource : string
$description : string = ''
Tags
throws
Throwable
Return values
int

delete()

public delete(string $resource[, bool $force = false ]) : void
Parameters
$resource : string
$force : bool = false
Tags
throws
RuntimeException
throws
Throwable

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|null

getUsage()

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
Return values
bool

        
On this page

Search results