Arikaim CMS

Permissions

Permissions

Table of Contents

Methods

addPermisionType()  : bool
Add permission type
hasFull()  : bool
Return true if have all permissions
hasPermission()  : bool
Return true if have permission
removePermisionType()  : bool
Remove permission type
resolvePermissions()  : array<string|int, mixed>
Resolve permissions array
verifyPermissions()  : bool
Check for permissions

Methods

addPermisionType()

Add permission type

public addPermisionType(string $permissionType[, string|null|int $id = null ]) : bool
Parameters
$permissionType : string
$id : string|null|int = null
Return values
bool

hasFull()

Return true if have all permissions

public hasFull([bool $deny = false ]) : bool
Parameters
$deny : bool = false
Return values
bool

hasPermission()

Return true if have permission

public hasPermission(string $name[, bool $deny = false ]) : bool
Parameters
$name : string

valid values read|write|delete|execute

$deny : bool = false
Return values
bool

removePermisionType()

Remove permission type

public removePermisionType(string $permissionType[, string|null|int $id = null ]) : bool
Parameters
$permissionType : string
$id : string|null|int = null
Return values
bool

resolvePermissions()

Resolve permissions array

public resolvePermissions(array<string|int, mixed>|string $access) : array<string|int, mixed>
Parameters
$access : array<string|int, mixed>|string
Return values
array<string|int, mixed>

verifyPermissions()

Check for permissions

public verifyPermissions(array<string|int, mixed> $permissions[, bool $deny = false ]) : bool
Parameters
$permissions : array<string|int, mixed>
$deny : bool = false
Return values
bool

        
On this page

Search results