PHP 클래스 Webiny\Component\Security\Role\RoleHierarchy

This class reads the current role hierarchy and creates an array tree of roles for easier access.
상속: use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $hierarchy ) Constructor.
getAccessibleRoles ( array $roles ) : array Returns an array of roles that are accessible by $roles.

비공개 메소드들

메소드 설명
buildRoleMap ( array $hierarchy ) Private function that parses the hierarchy array and builds up a hierarchy map

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $hierarchy )
$hierarchy array Role hierarchy array from system configuration.

getAccessibleRoles() 공개 메소드

Returns an array of roles that are accessible by $roles.
public getAccessibleRoles ( array $roles ) : array
$roles array
리턴 array