Constructor
gacl
gacl
([array $options = NULL])
-
array
$options: An arry of options to oeverride the class defaults
Wraps the actual acl_query() function.
It is simply here to return TRUE/FALSE accordingly.
boolean
acl_check
(string $aco_section_value, string $aco_value, string $aro_section_value, string $aro_value, [string $axo_section_value = NULL], [string $axo_value = NULL], [integer $root_aro_group = NULL], [integer $root_axo_group = NULL])
-
string
$aco_section_value: The ACO section value
-
string
$aco_value: The ACO value
-
string
$aro_section_value: The ARO section value
-
string
$aro_value: The ARO section
-
string
$axo_section_value: The AXO section value (optional)
-
string
$axo_value: The AXO section value (optional)
-
integer
$root_aro_group: The group id of the ARO ??Mike?? (optional)
-
integer
$root_axo_group: The group id of the AXO ??Mike?? (optional)
Handles ACL lookups over arrays of AROs
mixed
acl_check_array
(string $aco_section_value, string $aco_value, array $aro_array)
-
string
$aco_section_value: The ACO section value
-
string
$aco_value: The ACO value
-
array
$aro_array: An named array of arrays, each element in the format aro_section_value=>array(aro_value1,aro_value1,...)
Grabs all groups mapped to an ARO. You can also specify a root_group for subtree'ing.
void
acl_get_groups
(string $section_value, string $value, [integer $root_group = NULL], [string $group_type = 'ARO'])
-
string
$section_value: The section value or the ARO or ACO
-
string
$value: The value of the ARO or ACO
-
integer
$root_group: The group id of the group to start at (optional)
-
string
$group_type: The type of group, either ARO or AXO (optional)
The Main function that does the actual ACL lookup.
array
acl_query
(string $aco_section_value, string $aco_value, string $aro_section_value, string $aro_value, [string $axo_section_value = NULL], [string $axo_value = NULL], [string $root_aro_group = NULL], [string $root_axo_group = NULL], [boolean $debug = NULL])
-
string
$aco_section_value: The ACO section value
-
string
$aco_value: The ACO value
-
string
$aro_section_value: The ARO section value
-
string
$aro_value: The ARO section
-
string
$axo_section_value: The AXO section value (optional)
-
string
$axo_value: The AXO section value (optional)
-
string
$root_aro_group: The value of the ARO group (optional)
-
string
$root_axo_group: The value of the AXO group (optional)
-
boolean
$debug: Debug the operation if true (optional)
Wraps the actual acl_query() function.
Quick access to the return value of an ACL.
string
acl_return_value
(string $aco_section_value, string $aco_value, string $aro_section_value, string $aro_value, [string $axo_section_value = NULL], [string $axo_value = NULL], [integer $root_aro_group = NULL], [integer $root_axo_group = NULL])
-
string
$aco_section_value: The ACO section value
-
string
$aco_value: The ACO value
-
string
$aro_section_value: The ARO section value
-
string
$aro_value: The ARO section
-
string
$axo_section_value: The AXO section value (optional)
-
string
$axo_value: The AXO section value (optional)
-
integer
$root_aro_group: The group id of the ARO (optional)
-
integer
$root_axo_group: The group id of the AXO (optional)
Prints database debug text if debug is enabled.
string
debug_db
([string $function_name = ''])
-
string
$function_name: The name of the function calling this method
Prints debug text if debug is enabled.
boolean
debug_text
(string $text)
-
string
$text: THe text to output
Uses PEAR's Cache_Lite package to grab cached arrays, objects, variables etc...
using unserialize() so it can handle more then just text string.
mixed
get_cache
(string $cache_id)
-
string
$cache_id: The id of the cached object
Uses PEAR's Cache_Lite package to write cached arrays, objects, variables etc...
using serialize() so it can handle more then just text string.
void
put_cache
(mixed $data, string $cache_id)
-
mixed
$data: A variable to cache
-
string
$cache_id: The id of the cached variable