class JHtmlAccess


Located at : UKNOWVA_ROOT/libraries/joomla/html/html/access.php

Extended Utility class for all HTML drawing classes.

Methods

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

Displays a list of the available access view levels

static string
usergroup(string $name, string $selected, string $attribs = '', boolean $allowAll = true)

Displays a list of the available user groups.

static string
usergroups(string $name, array $selected, boolean $checkSuperAdmin = false)

Returns a UL list of user groups with check boxes

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

Returns a UL list of actions with check boxes

static mixed
assetgroups(array $config = array())

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

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

Displays a Select list of the available asset groups

Details

at line 44
static string level(string $name, string $selected, string $attribs = '', mixed $params = true, string $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 and array of options
string $id The form field id

Return Value

string The required HTML for the SELECT tag.

See also

JFormFieldAccessLevel

at line 97
static string usergroup(string $name, string $selected, string $attribs = '', boolean $allowAll = true)

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.
boolean $allowAll True to add "All Groups" option.

Return Value

string The required HTML for the SELECT tag.

See also

JFormFieldUsergroup

at line 143
static string usergroups(string $name, array $selected, boolean $checkSuperAdmin = false)

Returns a UL list of user groups with check boxes

Parameters

string $name The name of the checkbox controls array
array $selected An array of the checked boxes
boolean $checkSuperAdmin If false only super admins can add to super admin groups

Return Value

string

at line 212
static string actions($name, $selected, $component, $section = 'global')

Returns a UL list of actions with check boxes

Parameters

$name
$selected
$component
$section

Return Value

string

See also

JAccess

at line 253
static mixed assetgroups(array $config = array())

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

Parameters

array $config An array of options for the options

Return Value

mixed An array or false if an error occurs

at line 289
static mixed assetgrouplist(string $name, mixed $selected, string $attribs = null, array $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

Return Value

mixed An HTML string or null if an error occurs