[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

(no description)

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

Defines 1 class

MenutypesModel:: (10 methods):
  populateState()
  getReverseLookup()
  getTypeOptions()
  addReverseLookupUrl()
  getTypeOptionsByComponent()
  getTypeOptionsFromXml()
  getTypeOptionsFromMvc()
  getTypeOptionsFromManifest()
  getTypeOptionsFromLayouts()
  getFolders()


Class: MenutypesModel  - X-Ref

Menu Item Types Model for Menus.

populateState()   X-Ref
Method to auto-populate the model state.

This method should only be called once per instantiation and is designed
to be called on the first call to the getState() method unless the model
configuration flag to ignore the request is set.

return: void

getReverseLookup()   X-Ref
Method to get the reverse lookup of the base link URL to Title

return: array  Array of reverse lookup of the base link URL to Title

getTypeOptions()   X-Ref
Method to get the available menu item type options.

return: array  Array of groups with menu item types.

addReverseLookupUrl($option)   X-Ref
Method to create the reverse lookup for link-to-name.
(can be used from onAfterGetMenuTypeOptions handlers)

param: CMSObject  $option  Object with request array or string and title public variables
return: void

getTypeOptionsByComponent($component)   X-Ref
Get menu types by component.

param: string  $component  Component URL option.
return: array

getTypeOptionsFromXml($file, $component)   X-Ref
Get the menu types from an XML file

param: string  $file       File path
param: string  $component  Component option as in URL
return: array|boolean

getTypeOptionsFromMvc($component)   X-Ref
Get menu types from MVC

param: string  $component  Component option like in URLs
return: array|boolean

getTypeOptionsFromManifest($component)   X-Ref
Get menu types from Component manifest

param: string  $component  Component option like in URLs
return: array|boolean

getTypeOptionsFromLayouts($component, $view)   X-Ref
Get the menu types from component layouts

param: string  $component  Component option as in URLs
param: string  $view       Name of the view
return: array

getFolders($component)   X-Ref
Get the folders with template files for the given component.

param: string  $component  Component option as in URLs
return: array



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