PHP 클래스 Traq\Permissions

부터: 4.0.0
저자: Jack P.
파일 보기 프로젝트 열기: nirix/traq 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaults array Default permissions.
$permissions array Added permissions.

공개 메소드들

메소드 설명
add ( string $action, boolean $default = false, $category = 'misc' ) Add a permission.
getDefaults ( boolean $withCategories = false ) : array Returns default permissions.
getPermissions ( $withCategories = false ) : array Returns default and added permissions.

메소드 상세

add() 공개 정적인 메소드

Add a permission.
public static add ( string $action, boolean $default = false, $category = 'misc' )
$action string Permission action
$default boolean Default value

getDefaults() 공개 정적인 메소드

Returns default permissions.
public static getDefaults ( boolean $withCategories = false ) : array
$withCategories boolean
리턴 array

getPermissions() 공개 정적인 메소드

Returns default and added permissions.
public static getPermissions ( $withCategories = false ) : array
리턴 array

프로퍼티 상세

$defaults 보호되어 있는 정적으로 프로퍼티

Default permissions.
protected static array $defaults
리턴 array

$permissions 보호되어 있는 정적으로 프로퍼티

Added permissions.
protected static array $permissions
리턴 array