PHP Class Xpressengine\Permission\Grant

Author: XE Developers ([email protected])
Inheritance: extends Illuminate\Support\Fluent
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

add() public méthode

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() public méthode

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

isAllowType() protected méthode

Check type is allowed
protected isAllowType ( stirng $type ) : boolean
$type stirng type
Résultat boolean

makeValue() protected méthode

Make value array from arguments
protected makeValue ( string | array $type, mixed $value = null ) : array
$type string | array value type
$value mixed values
Résultat array

set() public méthode

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() protected méthode

Value filter
protected valueFilter ( array $value ) : array
$value array values
Résultat array