[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/HTML/Helpers/ -> Access.php (summary)

Joomla! Content Management System

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 305 lines (10 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 6 functions

  level()
  usergroup()
  usergroups()
  actions()
  assetgroups()
  assetgrouplist()

Functions
Functions that are not part of a class:

level($name, $selected, $attribs = '', $params = true, $id = false)   X-Ref
Displays a list of the available access view levels

param: string  $name      The form field name.
param: string  $selected  The name of the selected section.
param: string  $attribs   Additional attributes to add to the select field.
param: mixed   $params    True to add "All Sections" option or an array of options
param: mixed   $id        The form field id or false if not used
return: string  The required HTML for the SELECT tag.

usergroup($name, $selected, $attribs = '', $allowAll = true, $id = false)   X-Ref
Displays a list of the available user groups.

param: string   $name      The form field name.
param: string   $selected  The name of the selected section.
param: string   $attribs   Additional attributes to add to the select field.
param: boolean  $allowAll  True to add "All Groups" option.
param: mixed    $id        The form field id
return: string   The required HTML for the SELECT tag.

usergroups($name, $selected, $checkSuperAdmin = false)   X-Ref
Returns a UL list of user groups with checkboxes

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

actions($name, $selected, $component, $section = 'global')   X-Ref
Returns a UL list of actions with checkboxes

param: string  $name       The name of the checkbox controls array
param: array   $selected   An array of the checked boxes
param: string  $component  The component the permissions apply to
param: string  $section    The section (within a component) the permissions apply to
return: string

assetgroups()   X-Ref
Gets a list of the asset groups as an array of JHtml compatible options.

return: mixed  An array or false if an error occurs

assetgrouplist($name, $selected, $attribs = null, $config = array()   X-Ref
Displays a Select list of the available asset groups

param: string  $name      The name of the select element
param: mixed   $selected  The selected asset group id
param: string  $attribs   Optional attributes for the select field
param: array   $config    An array of options for the control
return: mixed  An HTML string or null if an error occurs



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer