JHtmlAccess

Extended Utility class for all HTML drawing classes.

abstract
package

Joomla.Platform

subpackage

HTML

since

11.1

Methods

actions

Returns a UL list of actions with check boxes

actions(string $name, array $selected, string $component, string $section = 'global') : string
static
see \JAccess
since

11.1

Arguments

$name

stringThe name of the checkbox controls array

$selected

arrayAn array of the checked boxes

$component

stringThe component the permissions apply to

$section

stringThe section (within a component) the permissions apply to

Response

string

assetgrouplist

Displays a Select list of the available asset groups

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

11.1

Arguments

$name

stringThe name of the select element

$selected

mixedThe selected asset group id

$attribs

stringOptional attributes for the select field

$config

arrayAn array of options for the control

Response

mixedAn HTML string or null if an error occurs

assetgroups

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

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

11.1

Arguments

$config

arrayAn array of options for the options

Response

mixedAn array or false if an error occurs

level

Displays a list of the available access view levels

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

11.1

see \JFormFieldAccessLevel

Arguments

$name

stringThe form field name.

$selected

stringThe name of the selected section.

$attribs

stringAdditional attributes to add to the select field.

$params

mixedTrue to add "All Sections" option or and array of options

$id

stringThe form field id

Response

stringThe required HTML for the SELECT tag.

usergroup

Displays a list of the available user groups.

usergroup(string $name, string $selected, string $attribs = '', boolean $allowAll = true) : string
static
see \JFormFieldUsergroup
since

11.1

Arguments

$name

stringThe form field name.

$selected

stringThe name of the selected section.

$attribs

stringAdditional attributes to add to the select field.

$allowAll

booleanTrue to add "All Groups" option.

Response

stringThe required HTML for the SELECT tag.

usergroups

Returns a UL list of user groups with check boxes

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

11.1

Arguments

$name

stringThe name of the checkbox controls array

$selected

arrayAn array of the checked boxes

$checkSuperAdmin

booleanIf false only super admins can add to super admin groups

Response

string

Properties

asset_groups

A cached array of the asset groups

static
since

11.1

Type(s)

array