DynamicRole Interface Reference

Detailed Description

DynamicRole is the interface for user roles based on attributes.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 20 of file DynamicRole.php.

Public Member Functions

 match (User $user, $resource)
 

Member Function Documentation

match ( User  $user,
  $resource 
)

Check if this role matches for a user and resource.

Parameters
$userThe user instance.
$resourceThe resource string.
Returns
Boolean whether the role matches or not, null if the result is undefined