Class MenusControllerMenus

Description

The Menu List Controller

  • since: 1.6

Located in /administrator/components/com_menus/controllers/menus.php (line 19)

JObject
   |
   --JControllerLegacy
      |
      --MenusControllerMenus
Method Summary
 void delete ()
 JController display ([boolean $cachable = false], [array $urlparams = false])
 object The getModel ([string $name = 'Menu'], [string $prefix = 'MenusModel'], [array $config = array('ignore_request' => true)])
 bool rebuild ()
 void resync ()
Variables
Methods
delete (line 54)

Removes an item

  • access: public
void delete ()
display (line 30)

Display the view

  • return: This object to support chaining.
  • since: 1.6
  • access: public
JController display ([boolean $cachable = false], [array $urlparams = false])
  • boolean $cachable: If true, the view output will be cached
  • array $urlparams: An array of safe url parameters and their variable types, for valid values see JFilterInput::clean().

Redefinition of:
JControllerLegacy::display()
Typical view method for MVC based architecture
getModel (line 45)

Method to get a model object, loading it if required.

  • return: model.
  • since: 1.6
  • access: public
object The getModel ([string $name = 'Menu'], [string $prefix = 'MenusModel'], [array $config = array('ignore_request' => true)])
  • string $name: The model name. Optional.
  • string $prefix: The class prefix. Optional.
  • array $config: Configuration array for model. Optional.

Redefinition of:
JControllerLegacy::getModel()
Method to get a model object, loading it if required.
rebuild (line 94)

Rebuild the menu tree.

  • return: False on failure or error, true on success.
  • access: public
bool rebuild ()
resync (line 119)

Temporary method. This should go into the 1.5 to 1.6 upgrade routines.

  • access: public
void resync ()

Inherited Methods

Inherited From JControllerLegacy

 JControllerLegacy::__construct()
 JControllerLegacy::addModelPath()
 JControllerLegacy::addPath()
 JControllerLegacy::addViewPath()
 JControllerLegacy::authorise()
 JControllerLegacy::checkEditId()
 JControllerLegacy::createFileName()
 JControllerLegacy::createModel()
 JControllerLegacy::createView()
 JControllerLegacy::display()
 JControllerLegacy::execute()
 JControllerLegacy::getInstance()
 JControllerLegacy::getModel()
 JControllerLegacy::getName()
 JControllerLegacy::getTask()
 JControllerLegacy::getTasks()
 JControllerLegacy::getView()
 JControllerLegacy::holdEditId()
 JControllerLegacy::redirect()
 JControllerLegacy::registerDefaultTask()
 JControllerLegacy::registerTask()
 JControllerLegacy::releaseEditId()
 JControllerLegacy::setMessage()
 JControllerLegacy::setPath()
 JControllerLegacy::setRedirect()
 JControllerLegacy::unregisterTask()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 15:08:00 +0100 by phpDocumentor 1.4.3