Class MenusControllerItem

Description

The Menu Item Controller

  • since: 1.6

Located in /administrator/components/com_menus/controllers/item.php (line 21)

JObject
   |
   --JController
      |
      --JControllerForm
         |
         --MenusControllerItem
Method Summary
mixed add ()
boolean batch ([object $model = null])
boolean cancel ([string $key = null])
boolean edit ([string $key = null], [string $urlVar = null])
boolean save ([string $key = null], [string $urlVar = null])
void setType ()
Variables
Methods
add (line 30)

Method to add a new menu item.

  • return: True if the record can be added, a JError object if not.
  • since: 1.6
  • access: public
mixed add ()

Redefinition of:
JControllerForm::add()
Method to add a new record.
batch (line 59)

Method to run batch operations.

  • return: True if successful, false otherwise and internal error is set.
  • since: 1.6
  • access: public
boolean batch ([object $model = null])
  • object $model: The model.

Redefinition of:
JControllerForm::batch()
Method to run batch operations.
cancel (line 81)

Method to cancel an edit.

  • return: True if access level checks pass, false otherwise.
  • since: 1.6
  • access: public
boolean cancel ([string $key = null])
  • string $key: The name of the primary key of the URL variable.

Redefinition of:
JControllerForm::cancel()
Method to cancel an edit.
edit (line 109)

Method to edit an existing record.

  • return: True if access level check and checkout passes, false otherwise.
  • since: 1.6
  • access: public
boolean edit ([string $key = null], [string $urlVar = null])
  • string $key: The name of the primary key of the URL variable.
  • string $urlVar: The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).

Redefinition of:
JControllerForm::edit()
Method to edit an existing record.
save (line 135)

Method to save a record.

  • return: True if successful, false otherwise.
  • since: 1.6
  • access: public
boolean save ([string $key = null], [string $urlVar = null])
  • string $key: The name of the primary key of the URL variable.
  • string $urlVar: The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).

Redefinition of:
JControllerForm::save()
Method to save a record.
setType (line 302)

Sets the type of the menu item currently being edited.

  • since: 1.6
void setType ()

Inherited Methods

Inherited From JControllerForm

JControllerForm::__construct()
JControllerForm::add()
JControllerForm::allowAdd()
JControllerForm::allowEdit()
JControllerForm::allowSave()
JControllerForm::batch()
JControllerForm::cancel()
JControllerForm::edit()
JControllerForm::getModel()
JControllerForm::getRedirectToItemAppend()
JControllerForm::getRedirectToListAppend()
JControllerForm::postSaveHook()
JControllerForm::save()

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:55:57 -0500 by phpDocumentor 1.4.4