UserGroupsHelper
class UserGroupsHelper
Helper to deal with user groups.
Constants
MODE_SINGLETON |
|
MODE_INSTANCE |
|
Methods
__construct(
array $groups = array(),
integer $mode = self::MODE_INSTANCE)
Constructor
integer
count()
Count loaded user groups.
static
UserGroupsHelper
getInstance()
Get the helper instance.
mixed
get(
integer $id)
Get a user group by its id.
array
getAll()
Get the list of existing user groups.
boolean
has(
integer $id)
Check if a group is in the list.
integer
total()
Get total available user groups in database.
mixed
load(
integer $id)
Load a group from database.
loadAll()
Load all user groups from the database.
setGroups(
array $groups)
Set the groups to be used as source.