class JHtmlAccess

Extended Utility class for all HTML drawing classes.

Methods

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

Displays a list of the available access view levels

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

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 checkboxes

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

Returns a UL list of actions with checkboxes

static  mixed
assetgroups()

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

static string level( string $name, string $selected, string $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

Return Value

string The required HTML for the SELECT tag.

See also

JFormFieldAccessLevel

static string usergroup( string $name, string $selected, string $attribs = '', boolean $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.
boolean $allowAll True to add "All Groups" option.
mixed $id The form field id

Return Value

string The required HTML for the SELECT tag.

See also

JFormFieldUsergroup

static string usergroups( string $name, array $selected, boolean $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
boolean $checkSuperAdmin If false only super admins can add to super admin groups

Return Value

string

static string actions( string $name, array $selected, string $component, string $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

Return Value

string

See also

JAccess

static mixed assetgroups()

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

Return Value

mixed An array or false if an error occurs

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