PHP Класс Xpressengine\Permission\Grant

Автор: XE Developers ([email protected])
Наследование: extends Illuminate\Support\Fluent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
add ( string $action, string | array $type, mixed $value = null ) Add grant information
except ( string $action, mixed $userIds = null ) Add except user identifier
set ( string $action, string | array $type, mixed $value = null ) Set grant information

Защищенные методы

Метод Описание
isAllowType ( stirng $type ) : boolean Check type is allowed
makeValue ( string | array $type, mixed $value = null ) : array Make value array from arguments
valueFilter ( array $value ) : array Value filter

Описание методов

add() публичный метод

Add grant information
public add ( string $action, string | array $type, mixed $value = null )
$action string action type
$type string | array value type
$value mixed values

except() публичный метод

Add except user identifier
public except ( string $action, mixed $userIds = null )
$action string action type
$userIds mixed user id or ids

isAllowType() защищенный метод

Check type is allowed
protected isAllowType ( stirng $type ) : boolean
$type stirng type
Результат boolean

makeValue() защищенный метод

Make value array from arguments
protected makeValue ( string | array $type, mixed $value = null ) : array
$type string | array value type
$value mixed values
Результат array

set() публичный метод

Set grant information
public set ( string $action, string | array $type, mixed $value = null )
$action string action type
$type string | array value type
$value mixed values

valueFilter() защищенный метод

Value filter
protected valueFilter ( array $value ) : array
$value array values
Результат array