JHtmlAccess
Extended Utility class for all HTML drawing classes.
since |
1.6 |
---|---|
package |
Joomla.Libraries |
Methods
actions
Returns a UL list of actions with checkboxes
actions(string $name, array $selected, string $component, string $section = 'global') : string
see | \JAccess |
---|---|
since |
1.6 |
Arguments
- $name
string
The name of the checkbox controls array- $selected
array
An array of the checked boxes- $component
string
The component the permissions apply to- $section
string
The 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
since |
1.6 |
---|
Arguments
- $name
string
The name of the select element- $selected
mixed
The selected asset group id- $attribs
string
Optional attributes for the select field- $config
array
An array of options for the control
Response
mixed
An HTML string or null if an error occurs
assetgroups
Gets a list of the asset groups as an array of JHtml compatible options.
assetgroups() : mixed
since |
1.6 |
---|
Response
mixed
An 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, mixed $id = false) : string
see | \JFormFieldAccessLevel |
---|---|
since |
1.6 |
Arguments
- $name
string
The form field name.- $selected
string
The name of the selected section.- $attribs
string
Additional attributes to add to the select field.- $params
mixed
True to add "All Sections" option or an array of options- $id
mixed
The form field id or false if not used
Response
string
The 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, mixed $id = false) : string
see | \JFormFieldUsergroup |
---|---|
since |
1.6 |
Arguments
- $name
string
The form field name.- $selected
string
The name of the selected section.- $attribs
string
Additional attributes to add to the select field.- $allowAll
boolean
True to add "All Groups" option.- $id
mixed
The form field id
Response
string
The required HTML for the SELECT tag.
usergroups
Returns a UL list of user groups with checkboxes
usergroups(string $name, array $selected, boolean $checkSuperAdmin = false) : string
since |
1.6 |
---|
Arguments
- $name
string
The name of the checkbox controls array- $selected
array
An array of the checked boxes- $checkSuperAdmin
boolean
If false only super admins can add to super admin groups
Response
string
Properties
asset_groups
A cached array of the asset groups
since |
1.6 |
---|
Type(s)
array