LabelTreeVersionPolicy
class LabelTreeVersionPolicy extends CachedPolicy
Traits
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
Properties
protected Cache | $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 given label tree version can be accessed by the user.
Determine if the given label tree version can be updated by the user.
Determine if the given label tree version can be deleted by the user.
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 21
bool|null
before(User $user, string $ability)
Intercept all checks.
at line 35
bool
create(User $user, LabelTree $tree)
Determine if the given user can create version of a label tree.
at line 47
bool
access(User $user, LabelTreeVersion $version)
Determine if the given label tree version can be accessed by the user.
at line 59
bool
update(User $user, LabelTreeVersion $version)
Determine if the given label tree version can be updated by the user.
at line 71
bool
destroy(User $user, LabelTreeVersion $version)
Determine if the given label tree version can be deleted by the user.