LabelTreeVersionPolicy
class LabelTreeVersionPolicy extendsCachedPolicy
Traits
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
Properties
protectedCache | $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
inCachedPolicyat line31
__construct()
Create a new CachedPolicy.
inCachedPolicyat line43
mixed
remember(string$key,callable$callback)
Wrapper for the Cache::remember function of the array cache.
at line21
bool|null
before(User$user,string$ability)
Intercept all checks.
at line35
bool
create(User$user,LabelTree$tree)
Determine if the given user can create version of a label tree.
at line47
bool
access(User$user,LabelTreeVersion$version)
Determine if the given label tree version can be accessed by the user.
at line59
bool
update(User$user,LabelTreeVersion$version)
Determine if the given label tree version can be updated by the user.
at line71
bool
destroy(User$user,LabelTreeVersion$version)
Determine if the given label tree version can be deleted by the user.