PHP 클래스 Xpressengine\Permission\Grant

저자: XE Developers ([email protected])
상속: extends Illuminate\Support\Fluent
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

공개 메소드들

메소드 설명
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