LabelTreePolicy
class LabelTreePolicy extendsCachedPolicy
Traits
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
TABLE |
|
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 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
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 line25
bool|null
before(User$user,string$ability)
Intercept all checks.
at line40
bool
create(User$user)
Determine if the given user can create label trees.
at line52
bool
access(User$user,LabelTree$tree)
Determine if the given label tree can be accessed by the user.
at line80
bool
createLabel(User$user,LabelTree$tree)
Determine if the user can add labels to the given label tree.
at line102
bool
update(User$user,LabelTree$tree)
Determine if the given label tree can be updated by the user.
at line124
bool
destroy(User$user,LabelTree$tree)
Determine if the given label tree can be deleted by the user.
at line136
bool
addMember(User$user,LabelTree$tree)
Determine if the user can add members to the given label tree.