PHP Class Efficiently\AuthorityController\Rule

Inheritance: extends Authority\Rule
Afficher le fichier Open project: efficiently/authority-controller

Méthodes publiques

Méthode Description
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

Method Details

isConditionsEmpty() public méthode

public isConditionsEmpty ( ) : boolean
Résultat boolean

isRelevant() public méthode

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
Résultat boolean

matchesAction() public méthode

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

onlyCondition() public méthode

public onlyCondition ( ) : boolean
Résultat boolean