[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

Joomla! Content Management System

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

Defines 6 functions

  menus()
  menuItems()
  menuItemList()
  ordering()
  linkOptions()
  treerecurse()

Functions
Functions that are not part of a class:

menus($clientId = 0)   X-Ref
Get a list of the available menus.

param: int  $clientId  The client id
return: array

menuItems($config = array()   X-Ref
Returns an array of menu items grouped by menu.

param: array  $config  An array of configuration options [published, checkacl, clientid].
return: array

menuItemList($name, $selected = null, $attribs = null, $config = array()   X-Ref
Displays an HTML select list of menu items.

param: string  $name      The name of the control.
param: string  $selected  The value of the selected option.
param: string  $attribs   Attributes for the control.
param: array   $config    An array of options for the control [id, published, checkacl, clientid].
return: string

ordering(&$row, $id)   X-Ref
Build the select list for Menu Ordering

param: object   $row   The row object
param: integer  $id    The id for the row. Must exist to enable menu ordering
return: string

linkOptions($all = false, $unassigned = false, $clientId = 0)   X-Ref
Build the multiple select list for Menu Links/Pages

param: boolean  $all         True if all can be selected
param: boolean  $unassigned  True if unassigned can be selected
param: int      $clientId    The client id
return: string

treerecurse($id, $indent, $list, &$children, $maxlevel = 9999, $level = 0, $type = 1)   X-Ref
Build the list representing the menu tree

param: integer  $id         Id of the menu item
param: string   $indent     The indentation string
param: array    $list       The list to process
param: array    $children   The children of the current item
param: integer  $maxlevel   The maximum number of levels in the tree
param: integer  $level      The starting level
param: int      $type       Set the type of spacer to use. Use 1 for |_ or 0 for -
return: array



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