[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_menus/src/Model/ -> MenusModel.php (summary)

(no description)

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

Defines 1 class

MenusModel:: (7 methods):
  __construct()
  getItems()
  getListQuery()
  populateState()
  getModMenuId()
  getModules()
  getMissingModuleLanguages()


Class: MenusModel  - X-Ref

Menu List Model for Menus.

__construct($config = array()   X-Ref
Constructor.

param: array                $config   An optional associative array of configuration settings.
param: MVCFactoryInterface  $factory  The factory.

getItems()   X-Ref
Overrides the getItems method to attach additional metrics to the list.

return: mixed  An array of data items on success, false on failure.

getListQuery()   X-Ref
Method to build an SQL query to load the list data.

return: string  An SQL query

populateState($ordering = 'a.title', $direction = 'asc')   X-Ref
Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

param: string  $ordering   An optional ordering field.
param: string  $direction  An optional direction (asc|desc).
return: void

getModMenuId()   X-Ref
Gets the extension id of the core mod_menu module.

return: integer

getModules()   X-Ref
Gets a list of all mod_mainmenu modules and collates them by menutype

return: array

getMissingModuleLanguages()   X-Ref
Returns the missing module languages.

return: array



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