Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (array $groups=array(), $mode=self::MODE_INSTANCE) | |
count () | |
get ($id) | |
getAll () | |
has ($id) | |
total () | |
load ($id) | |
loadAll () | |
populateGroupData ($group) | |
setGroups (array $groups) | |
Fonctions membres publiques statiques | |
static | getInstance () |
Champs de données | |
const | MODE_SINGLETON = 1 |
const | MODE_INSTANCE = 2 |
Fonctions membres privées | |
isSingleton () | |
populateGroupsData () | |
Attributs privés | |
$groups = array() | |
$mode | |
$total | |
Attributs privés statiques | |
static | $instance |
Helper to deal with user groups.
__construct | ( | array | $groups = array() , |
$mode = self::MODE_INSTANCE |
|||
) |
count | ( | ) |
Count loaded user groups.
get | ( | $id | ) |
Get a user group by its id.
integer | $id | Group identifier |
Références $id, et Symfony\Contracts\Service\has().
getAll | ( | ) |
|
static |
Get the helper instance.
Référencé par Access\getGroupPath(), UsersHelper\getGroups(), GroupparentField\getOptions(), UsergrouplistField\getOptions(), RulesField\getUserGroups(), User\groups(), Access\usergroup(), Access\usergroups(), et LevelModel\validate().
has | ( | $id | ) |
Check if a group is in the list.
integer | $id | Group identifier |
Références $id.
|
private |
Check if this instance is a singleton.
load | ( | $id | ) |
Load a group from database.
integer | $id | Group identifier |
Références $db, $id, $query, Factory\getDbo(), et ParameterType\INTEGER.
loadAll | ( | ) |
Load all user groups from the database.
Références $db, $groups, $query, $this, et Factory\getDbo().
populateGroupData | ( | $group | ) |
Populate data for a specific user group.
\stdClass | $group | Group |
Références Symfony\Contracts\Service\has(), et if.
|
private |
setGroups | ( | array | $groups | ) |
total | ( | ) |
Get total available user groups in database.
Références $db, $query, $total, Factory\getDbo(), et null.
|
private |
|
staticprivate |
|
private |
|
private |
const MODE_INSTANCE = 2 |
const MODE_SINGLETON = 1 |