PHP 클래스 Efficiently\AuthorityController\Rule

상속: extends Authority\Rule
파일 보기 프로젝트 열기: efficiently/authority-controller

공개 메소드들

메소드 설명
isConditionsEmpty ( ) : boolean
isRelevant ( string | array $action, string | mixed $resource ) : boolean Determine if current rule is relevant based on an action and resource
matchesAction ( string | array $action ) : boolean Determine if the instance's action matches the one passed in
onlyCondition ( ) : boolean

메소드 상세

isConditionsEmpty() 공개 메소드

public isConditionsEmpty ( ) : boolean
리턴 boolean

isRelevant() 공개 메소드

Determine if current rule is relevant based on an action and resource
public isRelevant ( string | array $action, string | mixed $resource ) : boolean
$action string | array Action in question
$resource string | mixed Name of resource or instance of object
리턴 boolean

matchesAction() 공개 메소드

Determine if the instance's action matches the one passed in
public matchesAction ( string | array $action ) : boolean
$action string | array Action in question
리턴 boolean

onlyCondition() 공개 메소드

public onlyCondition ( ) : boolean
리턴 boolean