+ // getGroups obtains an array consisting of:
+ // - A parent group (..) of a currently selected group, if available.
+ // - A currently selected group (.) represented by $behalf_group_id.
+ // - All subgroups (only immediate children) of a currently selected group.
+ function getGroups($options) {
+ $mdb2 = getConnection();
+
+ // $sql = 'select id, parent_id, name from tt_groups where org_id = $this->org_id ...'; // TODO: parent_id is now NULL in db, fix this.
+ // Step 1: Get parent group (sql query).
+ // Step 2: Get current group from the class.
+ // Step 3: Get immediate subgroups (sql query).
+ // Populate an array and return it,
+
+ return false; // Work in progress here...
+ }
+