Class CategoriesControllerCategory

Description

The Category Controller

  • since: 1.6

Located in /administrator/components/com_categories/controllers/category.php (line 21)

JObject
   |
   --JController
      |
      --JControllerForm
         |
         --CategoriesControllerCategory
Variable Summary
string $extension
Method Summary
CategoriesControllerCategory __construct ([array $config = array()])
boolean allowAdd ([array $data = array()])
boolean allowEdit ([array $data = array()], [string $key = 'parent_id'])
boolean batch ([object $model = null])
string getRedirectToItemAppend ([integer $recordId = null], [string $urlVar = 'id'])
Variables
Methods
Constructor __construct (line 39)

Constructor.

CategoriesControllerCategory __construct ([array $config = array()])
  • array $config: An optional associative array of configuration settings.

Redefinition of:
JControllerForm::__construct()
Constructor.
allowAdd (line 59)

Method to check if you can add a new record.

  • since: 1.6
  • access: protected
boolean allowAdd ([array $data = array()])
  • array $data: An array of input data.

Redefinition of:
JControllerForm::allowAdd()
Method to check if you can add a new record.
allowEdit (line 75)

Method to check if you can edit a record.

  • since: 1.6
  • access: protected
boolean allowEdit ([array $data = array()], [string $key = 'parent_id'])
  • array $data: An array of input data.
  • string $key: The name of the key for the primary key.

Redefinition of:
JControllerForm::allowEdit()
Method to check if you can add a new record.
batch (line 131)

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.
getRedirectToItemAppend (line 154)

Gets the URL arguments to append to an item redirect.

  • return: The arguments to append to the redirect URL.
  • since: 1.6
  • access: protected
string getRedirectToItemAppend ([integer $recordId = null], [string $urlVar = 'id'])
  • integer $recordId: The primary key id for the item.
  • string $urlVar: The name of the URL variable for the id.

Redefinition of:
JControllerForm::getRedirectToItemAppend()
Gets the URL arguments to append to an item redirect.
getRedirectToListAppend (line 169)

Gets the URL arguments to append to a list redirect.

  • return: The arguments to append to the redirect URL.
  • since: 1.6
  • access: protected
string getRedirectToListAppend ()

Redefinition of:
JControllerForm::getRedirectToListAppend()
Gets the URL arguments to append to a list redirect.

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