Method |
Description |
|
__construct ( $groupID = NULL, $status = 1, $filter = FALSE ) |
============ NON STATIC METHODS =================== |
|
add ( $in ) |
returns the database ID of the added group or FALSE if failed |
|
delete ( $id ) |
returns the # of deleted groups (int). 0 (false) if none. |
|
get ( $p = [] ) |
returns an array of groups. Array key(s) correlates to group ID. |
|
getMemberIDs ( $group, $status = 1, $filter = false ) |
returns an array of subscriber IDs |
|
getNames ( $id = null ) |
returns an array of group names. Array key(s) correlates to group ID. |
|
make ( $in = [] ) |
return a group object (array) |
|
makeDB ( &$row ) |
return a group object (array) |
|
members ( $p = [], $filter = ['field' => null, 'string' => null] ) |
returns sorted/ordered/limited member IDs -- scoped to current group member IDs |
|
nameChange ( $id, $name ) |
returns success (bool) |
|
nameExists ( $name = null ) |
returns (bool) true if exists, false if not |
|
rulesAffected ( $id = [] ) |
Returns a count (int) of affected rules. 0 if none. |
|
tally ( $group, $status = 1 ) |
returns a tally (int) |
|
validate ( &$in ) |
TODO -> add validation of group array |
|