LabelTreePolicy
class LabelTreePolicy extends CachedPolicy
Traits
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
TABLE |
|
Properties
protected Repository | $cache | The cache instance to use for caching policies. |
from CachedPolicy |
Methods
Wrapper for the Cache::remember function of the array cache.
Determine if the user can add labels to the given label tree.
Determine if the user can update the given member of the given label tree.
Determine if the user can remove the given member from the given label tree.
Details
in
CachedPolicy at line 31
__construct()
Create a new CachedPolicy.
in
CachedPolicy at line 43
mixed
remember(string $key, callable $callback)
Wrapper for the Cache::remember function of the array cache.
at line 25
bool|null
before(User $user, string $ability)
Intercept all checks.
at line 40
bool
create(User $user)
Determine if the given user can create label trees.
at line 52
bool
access(User $user, LabelTree $tree)
Determine if the given label tree can be accessed by the user.
at line 80
bool
createLabel(User $user, LabelTree $tree)
Determine if the user can add labels to the given label tree.
at line 102
bool
update(User $user, LabelTree $tree)
Determine if the given label tree can be updated by the user.
at line 124
bool
destroy(User $user, LabelTree $tree)
Determine if the given label tree can be deleted by the user.
at line 136
bool
addMember(User $user, LabelTree $tree)
Determine if the user can add members to the given label tree.