Back to Joomla project (class list)

Class Access - list of methods

Extended Utility class for all HTML drawing classes.
Package: Joomla\CMS\HTML\Helpers
Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/HTML/Helpers/Access.php
Project: Joomla

Method Summary

public static string
(mixed $name, mixed $selected, mixed $attribs = '', mixed $params = true, mixed $id = false)

Displays a list of the available access view levels
Parameters
  • string $name The form field name.
  • string $selected The name of the selected section.
  • string $attribs Additional attributes to add to the select field.
  • mixed $params True to add "All Sections" option or an array of options
  • mixed $id The form field id or false if not used
Returns
  • string The required HTML for the SELECT tag.
Since
  • 1.6
-
  • \Joomla\CMS\Form\Field\AccesslevelField
Show source code of this method: level Source Code

public static string
(mixed $name, mixed $selected, mixed $attribs = '', mixed $allowAll = true, mixed $id = false)

Displays a list of the available user groups.
Parameters
  • string $name The form field name.
  • string $selected The name of the selected section.
  • string $attribs Additional attributes to add to the select field.
  • bool $allowAll True to add "All Groups" option.
  • mixed $id The form field id
Returns
  • string The required HTML for the SELECT tag.
Since
  • 1.6
-
  • \Joomla\CMS\Form\Field\UsergrouplistField
Show source code of this method: usergroup Source Code

public static string
(mixed $name, mixed $selected, mixed $checkSuperAdmin = false)

Returns a UL list of user groups with checkboxes
Parameters
  • string $name The name of the checkbox controls array
  • array $selected An array of the checked boxes
  • bool $checkSuperAdmin If false only super admins can add to super admin groups
Returns
  • string
Since
  • 1.6
Show source code of this method: usergroups Source Code

public static string
(mixed $name, mixed $selected, mixed $component, mixed $section = 'global')

Returns a UL list of actions with checkboxes
Parameters
  • string $name The name of the checkbox controls array
  • array $selected An array of the checked boxes
  • string $component The component the permissions apply to
  • string $section The section (within a component) the permissions apply to
Returns
  • string
Since
  • 1.6
-
  • \Joomla\CMS\Access\Access
Show source code of this method: actions Source Code

public static mixed
()

Gets a list of the asset groups as an array of JHtml compatible options.
Returns
  • mixed An array or false if an error occurs
Since
  • 1.6
Show source code of this method: assetgroups Source Code

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

Displays a Select list of the available asset groups
Parameters
  • string $name The name of the select element
  • mixed $selected The selected asset group id
  • string $attribs Optional attributes for the select field
  • array $config An array of options for the control
Returns
  • mixed An HTML string or null if an error occurs
Since
  • 1.6
Show source code of this method: assetgrouplist Source Code

Properties Summary

protected static array
$asset_groups
A cached array of the asset groups
Since
  • 1.6

Tags Summary

Since
1.6