The permissions class. This class encpasulates a set of permissions which can be managed and tested by the associated methods.
Located in /user-defs.php (line 616)
Array of permisssions. This is an associative array with the
Constructor Create a new permissions object with an optional permissions set.
This is a variant permitted query method, which takes a comma-delimited list of agent IDs, and returns true if ANY one or more of these has the required permissions. This facilitates passing of a group membership list for a given user, for example.
This is the main method for querying permission access rights for a given agent. Returns a boolean value, true if the agent is permitted to access in the given way, else false. If the agent ID is unrecognised, then the method uses the 'default agent' permissions.
Low-level method for returning the permission for the given agent and perm. We return one of three states: agent is allowed, agent is disallowed, or agent permission status is undefined/unknown. The latter would occur if the agent ID is unrecognised in this class (ie. not in the $perms array).
Assign the given agent(s) the given access permission. The first paramter is a (comma) delimited list of agent IDs to assign the permission to.
Assign the default permission. This is the permission which is applied if the supplied agent is not recognised.
Un-assign the given agent(s) the given access permission. The first paramter is a (comma) delimited list of agent IDs to unassign the permission from.
Documentation generated by phpDocumentor 1.3.0RC3