From 66b18be324deca4d392ee51f8b73a6d65b75eacc Mon Sep 17 00:00:00 2001
From: David M The Where userdata is the array containing the aforementioned data. This method is the primary way of determining what a user can and cannot do for a given option globally or in a given forum. The method should be called in the following way: Where option is a string representing the required option, e.g. 'f_list', 'm_edit', 'a_adduser', etc. By adding a ! in front of the option, e.g. '!f_list' the result of this method will be negated. The optional forum term is the integer forum_id. The method should be called thus: As with the acl method is the initialisation routine for all the acl functions. If you intend calling any acl method you must first call this. The method takes as its one and only required parameter an associative array containing user information as stored in the database. This array must contain at least the following information; user_id, user_permissions and user_type. It is called in the following way:
-$auth->acl(
userdata);
+$auth->acl(userdata);
userdata);
-$result = $auth->acl_get(
option[, forum]);
+$result = $auth->acl_get(option[, forum]);
option[, forum]);
-$result = $auth->acl_gets(
option1[, option2, ..., optionN, forum]);
+$result = $auth->acl_gets(option1[, option2, ..., optionN, forum]);
acl_get method the options are strings representing the required permissions to check. The forum again is an integer representing a given forum_id.option1[, option2, ...,
-$result = $auth->acl_getf(option[,clean]); +$result = $auth->acl_getf(option[,clean]);
Just like in the acl_get method the option is a string specifying the permission which has to be checked (negation using ! is allowed). The second parameter is a boolean. If it is set to false this method returns all forums with either zero or a positive integer. If it is set to true only those forums with a positive integer as the result will be returned.
option[, clean]);
The method returns an associative array of the form:
-array(forum_id1 => array(option => integer), forum_id2 => ...) +array(forum_id1 => array(option => integer), forum_id2 => ...)
Where option is the option passed to the method and integer is either zero or a positive integer and the same acl_get(option, forum_id) would return.