프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$allowedActions | array | Cached actions per Role |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_pathWhitelist | Path Whitelist |
메소드 | 설명 | |
---|---|---|
__construct ( View $View, $settings = [] ) | Constructor | |
beforeRender ( $viewFile ) | beforeRender | |
getAllowedActionsByRoleId ( integer $roleId ) : array | Returns an array of allowed actions for current logged in Role | |
getAllowedActionsByUserId ( integer $userId ) : array | Returns an array of allowed actions for current logged in User | |
linkIsAllowedByRoleId ( integer $roleId, $url ) : boolean | Check if url is allowed for the Role | |
linkIsAllowedByUserId ( integer $userId, array | string $url ) : boolean | Check if url is allowed for the User |
메소드 | 설명 | |
---|---|---|
_isWhitelist ( $url ) : boolean | Checks whether path is in whitelist |
protected _isWhitelist ( $url ) : boolean | ||
리턴 | boolean | True if path is in the whitelist |
public getAllowedActionsByRoleId ( integer $roleId ) : array | ||
$roleId | integer | Role id |
리턴 | array |
public getAllowedActionsByUserId ( integer $userId ) : array | ||
$userId | integer | User id |
리턴 | array |
public linkIsAllowedByRoleId ( integer $roleId, $url ) : boolean | ||
$roleId | integer | Role id |
$url | array | |
리턴 | boolean |