Class JControllerAdmin

Description

Base class for a Joomla Administrator Controller

Controller (controllers are where you put all the actual code) Provides basic functionality, such as rendering views (aka displaying templates).

  • since: 12.2

Located in /libraries/legacy/controller/admin.php (line 22)

JObject
   |
   --JControllerLegacy
      |
      --JControllerAdmin
Direct descendents
Class Description
 class BannersControllerBanners Banners list controller class.
 class BannersControllerClients Clients list controller class.
 class CategoriesControllerCategories The Categories List Controller
 class ContactControllerContacts Articles list controller class.
 class ContentControllerArticles Articles list controller class.
 class ContenthistoryControllerHistory Contenthistory list controller class.
 class FinderControllerFilters Filters controller class for Finder.
 class FinderControllerIndex Index controller class for Finder.
 class FinderControllerMaps Maps controller class for Finder.
 class LanguagesControllerLanguages
 class LanguagesControllerOverrides Languages Overrides Controller
 class LanguagesControllerStrings Languages Strings JSON Controller
 class MenusControllerItems The Menu Item Controller
 class MessagesControllerMessages Messages list controller class.
 class ModulesControllerModules Modules list controller class.
 class NewsfeedsControllerNewsfeeds Newsfeeds list controller class.
 class PluginsControllerPlugins Plugins list controller class.
 class RedirectControllerLinks Redirect link list controller class.
 class TagsControllerTags The Tags List Controller
 class TemplatesControllerStyles Template styles list controller class.
 class UsersControllerGroups User groups list controller class.
 class UsersControllerLevels User view levels list controller class.
 class UsersControllerNotes User notes controller class.
 class UsersControllerUsers Users list controller class.
 class WeblinksControllerWeblinks Weblinks list controller class.
Variable Summary
 string $option
 string $text_prefix
 string $view_list
Method Summary
 JControllerAdmin __construct ([array $config = array()])
 boolean checkin ()
 void delete ()
 JControllerLegacy display ([boolean $cachable = false], [array $urlparams = array()])
 void postDeleteHook (JModelLegacy $model, [integer $id = null])
 void publish ()
 boolean reorder ()
 boolean saveorder ()
 void saveOrderAjax ()
Variables
string $option (line 30)

The URL option for the component.

  • since: 12.2
  • access: protected
string $text_prefix (line 38)

The prefix to use with controller messages.

  • since: 12.2
  • access: protected

Redefined in descendants as:
string $view_list (line 46)

The URL view list variable.

  • since: 12.2
  • access: protected

Inherited Variables

Inherited from JControllerLegacy

JControllerLegacy::$basePath
JControllerLegacy::$default_view
JControllerLegacy::$doTask
JControllerLegacy::$input
JControllerLegacy::$instance
JControllerLegacy::$message
JControllerLegacy::$messageType
JControllerLegacy::$methods
JControllerLegacy::$model_prefix
JControllerLegacy::$name
JControllerLegacy::$paths
JControllerLegacy::$redirect
JControllerLegacy::$task
JControllerLegacy::$taskMap

Inherited from JObject

JObject::$_errors
Methods
Constructor __construct (line 57)

Constructor.

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

Redefinition of:
JControllerLegacy::__construct()
Constructor.

Redefined in descendants as:
checkin (line 321)

Check in of one or more records.

  • return: True on success
  • since: 12.2
  • access: public
boolean checkin ()

Redefined in descendants as:
delete (line 108)

Removes an item.

  • since: 12.2
  • access: public
void delete ()

Redefined in descendants as:
display (line 170)

Display is not supported by this controller.

  • return: A JControllerLegacy object to support chaining.
  • since: 12.2
  • access: public
JControllerLegacy display ([boolean $cachable = false], [array $urlparams = array()])
  • 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
postDeleteHook (line 156)

Function that allows child controller access to model data after the item has been deleted.

  • since: 12.2
  • access: protected
void postDeleteHook (JModelLegacy $model, [integer $id = null])
  • JModelLegacy $model: The data model object.
  • integer $id: The validated data.

Redefined in descendants as:
publish (line 182)

Method to publish a list of items

  • since: 12.2
  • access: public
void publish ()

Redefined in descendants as:
reorder (line 246)

Changes the order of one or more records.

  • return: True on success
  • since: 12.2
  • access: public
boolean reorder ()

Redefined in descendants as:
saveorder (line 279)

Method to save the submitted ordering values for records.

  • return: True on success
  • since: 12.2
  • access: public
boolean saveorder ()

Redefined in descendants as:
saveOrderAjax (line 353)

Method to save the submitted ordering values for records via AJAX.

  • since: 3.0
  • access: public
void saveOrderAjax ()

Redefined in descendants as:

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 14:53:27 +0100 by phpDocumentor 1.4.3