|
|

|
Permissions Instance methodsAccessible Instance methodsChecks that the currently authenticated user has all the rights that are specified in required. If not, perm_invalid() is called. If one or more of the required rights or user rights are invalid (not to be found in the permissions hash), perm_invalid() is called as well. Similar to check() in usage, only that it doesn't halt the session if the user doesn't have the appropriate rights: This function returns true, if the user has the required rights, false otherwise. perm_sel($name, $current = "", $class = "")This function returns a SELECT-tag with the given name. Within this tag, all available permission values from $perm->permissions are contained as OPTION tags. If you supply a value for current, the permission value that matches current is SELECTED. If you supply a value for class, the tags are marked with that CSS stylesheet class. Internal instance methodsLogically or's all the rights and returns a pair (valid, or_result).
If valid is true, an or_result is provided. If valid is false, the or_result is undefined and one
or more of the rights do not exist at all. This is a severe error and the application should be halted at once. perm_invalid($does_have, $must_have)Called in case of an access violation. does_have is a string listing the rights the user actually has. must_have are the rights the page requires.
User Contributed Notes Permissions Instance methods
| 
|
There are no user contributed notes for this page.
|
|
|