Class JHtmlAccess
Extended Utility class for all HTML drawing classes.
Methods summary
public static
string
|
#
level( string $name, string $selected, string $attribs = '', mixed $params = true, mixed $id = false )
Displays a list of the available access view levels
Displays a list of the available access view levels
Parameters
- $name
string - $name The form field name.
- $selected
string - $selected The name of the selected section.
- $attribs
string - $attribs Additional attributes to add to the select field.
- $params
mixed - $params True to add "All Sections" option or an array of options
- $id
mixed - $id The form field id or false if not used
Returns
string - The required HTML for the SELECT tag.
Since
1.6
See
|
public static
string
|
#
usergroup( string $name, string $selected, string $attribs = '', boolean $allowAll = true, mixed $id = false )
Displays a list of the available user groups.
Displays a list of the available user groups.
Parameters
- $name
string - $name The form field name.
- $selected
string - $selected The name of the selected section.
- $attribs
string - $attribs Additional attributes to add to the select field.
- $allowAll
boolean - $allowAll True to add "All Groups" option.
- $id
mixed - $id The form field id
Returns
string - The required HTML for the SELECT tag.
Since
1.6
See
|
public static
string
|
#
usergroups( string $name, array $selected, boolean $checkSuperAdmin = false )
Returns a UL list of user groups with checkboxes
Returns a UL list of user groups with checkboxes
Parameters
- $name
string - $name The name of the checkbox controls array
- $selected
array - $selected An array of the checked boxes
- $checkSuperAdmin
boolean - $checkSuperAdmin If false only super admins can add to super admin groups
Returns
string
Since
1.6
|
public static
string
|
#
actions( string $name, array $selected, string $component, string $section = 'global' )
Returns a UL list of actions with checkboxes
Returns a UL list of actions with checkboxes
Parameters
- $name
string - $name The name of the checkbox controls array
- $selected
array - $selected An array of the checked boxes
- $component
string - $component The component the permissions apply to
- $section
string - $section The section (within a component) the permissions apply to
Returns
string
Since
1.6
See
|
public static
mixed
|
#
assetgroups( )
Gets a list of the asset groups as an array of JHtml compatible options.
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
|
public static
mixed
|
#
assetgrouplist( string $name, mixed $selected, string $attribs = null, array $config = array() )
Displays a Select list of the available asset groups
Displays a Select list of the available asset groups
Parameters
- $name
string - $name The name of the select element
- $selected
mixed - $selected The selected asset group id
- $attribs
string - $attribs Optional attributes for the select field
- $config
array - $config An array of options for the control
Returns
mixed - An HTML string or null if an error occurs
Since
1.6
|
Magic methods summary
Properties summary
protected static
array
|
$asset_groups
|
#
A cached array of the asset groups
A cached array of the asset groups
Since
1.6
|