Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Access

Fonctions membres publiques statiques

static level ($name, $selected, $attribs='', $params=true, $id=false)
 
static usergroup ($name, $selected, $attribs='', $allowAll=true, $id=false)
 
static usergroups ($name, $selected, $checkSuperAdmin=false)
 
static actions ($name, $selected, $component, $section='global')
 
static assetgroups ()
 
static assetgrouplist ($name, $selected, $attribs=null, $config=array())
 

Attributs protégés statiques

static $asset_groups = null
 

Description détaillée

Extended Utility class for all HTML drawing classes.

Depuis
1.6

Documentation des fonctions membres

◆ actions()

static actions (   $name,
  $selected,
  $component,
  $section = 'global' 
)
static

Returns a UL list of actions with checkboxes

Paramètres
string$nameThe name of the checkbox controls array
array$selectedAn array of the checked boxes
string$componentThe component the permissions apply to
string$sectionThe section (within a component) the permissions apply to
Renvoie
string
Voir également
AccessCheck
Depuis
1.6

Références $actions, $checked, $component, $count, $html, $i, $item, $n, $name, $section, $selected, Text\_(), et JPATH_ADMINISTRATOR.

◆ assetgrouplist()

static assetgrouplist (   $name,
  $selected,
  $attribs = null,
  $config = array() 
)
static

Displays a Select list of the available asset groups

Paramètres
string$nameThe name of the select element
mixed$selectedThe selected asset group id
string$attribsOptional attributes for the select field
array$configAn array of options for the control
Renvoie
mixed An HTML string or null if an error occurs
Depuis
1.6

Références $attribs, $config, $count, $name, $options, $selected, HTMLHelper\_(), et null.

◆ assetgroups()

static assetgroups ( )
static

Gets a list of the asset groups as an array of JHtml compatible options.

Renvoie
mixed An array or false if an error occurs
Depuis
1.6

Références $db, $query, et Factory\getDbo().

◆ level()

static level (   $name,
  $selected,
  $attribs = '',
  $params = true,
  $id = false 
)
static

Displays a list of the available access view levels

Paramètres
string$nameThe form field name.
string$selectedThe name of the selected section.
string$attribsAdditional attributes to add to the select field.
mixed$paramsTrue to add "All Sections" option or an array of options
mixed$idThe form field id or false if not used
Renvoie
string The required HTML for the SELECT tag.
Voir également
Depuis
1.6

Références $attribs, $db, $id, $name, $options, $params, $query, $selected, Text\_(), HTMLHelper\_(), elseif, et Factory\getDbo().

◆ usergroup()

static usergroup (   $name,
  $selected,
  $attribs = '',
  $allowAll = true,
  $id = false 
)
static

Displays a list of the available user groups.

Paramètres
string$nameThe form field name.
string$selectedThe name of the selected section.
string$attribsAdditional attributes to add to the select field.
boolean$allowAllTrue to add "All Groups" option.
mixed$idThe form field id
Renvoie
string The required HTML for the SELECT tag.
Voir également
Depuis
1.6

Références $attribs, $i, $id, $n, $name, $options, $selected, Text\_(), HTMLHelper\_(), UserGroupsHelper\getInstance(), et level.

◆ usergroups()

static usergroups (   $name,
  $selected,
  $checkSuperAdmin = false 
)
static

Returns a UL list of user groups with checkboxes

Paramètres
string$nameThe name of the checkbox controls array
array$selectedAn array of the checked boxes
boolean$checkSuperAdminIf false only super admins can add to super admin groups
Renvoie
string
Depuis
1.6

Références $checked, $count, $groups, $html, $i, $item, $n, $name, $rel, $selected, UserGroupsHelper\getInstance(), Factory\getUser(), et LayoutHelper\render().

Documentation des champs

◆ $asset_groups

$asset_groups = null
staticprotected

La documentation de cette classe a été générée à partir du fichier suivant :