Method:
grabAll()
Class:
GROUP
Method Call:
include_once("core/group/GROUP.php");
$group = new GROUP($this->db);
ASSOC. ARRAY $group->grabAll();
Description:
Returns an associative array of all the groups in the WIKINDX database ordered by group name.
Usage:
include_once("core/group/GROUP.php"); $group = new GROUP($this->db); $groupArray = $group->grabAll(); $groupArray will be something like: array( '1' => 'General', '3' => 'Mediaeval Art', '7' => 'Modern Art', '2' => 'Renaissance Art', );The General group always exists and always has an ID of '1'. The keys of the arrays are the ID numbers in the database table WKX_group and are the IDs that are inserted as a comma-delimited list in the groups field of WKX_resource_group for resources that are members of that group(s).