Class MenusControllerMenus

Description

The Menu List Controller

  • since: 1.6

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

JObject
   |
   --JController
      |
      --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 53)

Removes an item

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

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:
JController::display()
Typical view method for MVC based architecture
getModel (line 44)

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:
JController::getModel()
Method to get a model object, loading it if required.
rebuild (line 87)

Rebuild the menu tree.

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

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

  • access: public
void resync ()

Inherited Methods

Inherited From JController

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

Inherited From JObject

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

Documentation generated on Mon, 25 Jun 2012 13:57:12 -0500 by phpDocumentor 1.4.4