mixed assignSubGroup(
array
$data)
|
|
Assign subgroup to parent group.
First checks if groupId and subgroupId are the same then if the child group is already assigned to the parent group and last if the child group does have a parent group already assigned to it. (Just to difference between what kinda error was hit)
If so it returns false and pushes the error into stack
Parameters:
boolean getGroups(
[array
$params = array()])
|
|
Get groups
Params: subgroups - defaults to false If subgroups should be included, if false then it acts same as the medium container getGroups, if set to true it will return all subgroups like they are directly assigned, if set to 'hierarchy' it will place a tree of the subgroups under the array key 'subgroups'
note that 'hierarchy' requires 'rekey' enabled, 'group' is disabled, 'select' set to 'all' and the first field needs to be 'group_id'
rekey = defaults to false By default (false) we return things in this fashion array(0 => array('group_id' => '1'))
But if rekey is turned on you get array(1 => array('group_define_name' => 'FOO'))
Where 1 is the group_id
Overrides
LiveUser_Admin_Perm_Medium::getGroups() (Fetches group(s))
Parameters:
void unassignSubGroup(
array
$filters)
|
|
Don't let the function name fool ya, it actually can remove more then one subgroup record at a time via the filters.
Most of the time you pass either group_id or subgroup_id or both with the filters to remove one or more record.
Parameters: