Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (CMSApplication $application) | |
load ($params, $enabled) | |
renderSubmenu ($layoutFile, $node) | |
getIconClass ($node) | |
getCounter () | |
Fonctions membres protégées | |
check ($node, Registry $params) | |
preprocess ($parent) | |
Attributs protégés | |
$root | |
$nodes = [] | |
$params | |
$enabled | |
$application | |
$counter = 0 | |
Tree based class to render the admin menu
__construct | ( | CMSApplication | $application | ) |
|
protected |
Check the flat list of menu items for important links
Références $items, $menutype, $message, $params, $uri, Text\_(), Uri\getInstance(), Table\getInstance(), et Text\sprintf().
getCounter | ( | ) |
getIconClass | ( | $node | ) |
load | ( | $params, | |
$enabled | |||
) |
Populate the menu items in the menu tree object
Registry | $params | Menu configuration parameters |
bool | $enabled | Whether the menu should be enabled or disabled |
Références $enabled, $heading, $menutype, $name, $params, $root, $uri, Uri\getInstance(), MenusHelper\getMenuItems(), et MenusHelper\loadPreset().
|
protected |
Filter and perform other preparatory tasks for loaded menu items based on access rights and module configurations for display
AdministratorMenuItem | $parent | A menu item to process |
Trigger onPreprocessMenuItems for the current level of backend menu items. $children is an array of AdministratorMenuItem objects. A plugin can traverse the whole tree, but new nodes will only be run through this method if their parents have not been processed yet.
If component is passed in the link via option variable, we set $item->element to this value for further processing. It is needed for links from menu items of third party extensions link to Joomla! core components like com_categories, com_fields...
Références $c, $item, $language, $last, $option, $parts, $query, $this, $uri, $user, Joomla\CMS\MVC\Model\$workflow, Text\_(), elseif, MenusHelper\getMenuItems(), ComponentHelper\getParams(), ComponentHelper\isEnabled(), Associations\isEnabled(), JPATH_ADMINISTRATOR, null, et ArrayHelper\sortObjects().
renderSubmenu | ( | $layoutFile, | |
$node | |||
) |
Method to render a given level of a menu using provided layout file
string | $layoutFile | The layout file to be used to render |
AdministratorMenuItem | $node | Node to render the children of |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |