-
Book Overview & Buying
-
Table Of Contents
Mastering Joomla! 1.5 Extension and Framework Development Second Edition
abstract, extends
JObject
, located in /
joomla/application/component/controller.php
This is the base controller class used in MVC implementations. Controllers provide basic functionality such as rendering views. For more information about the JController class refer to Chapter 5, Component Design.
|
string |
ACO section for the controller |
|
string |
Default ACO section value for the controller |
|
string |
The base path of the controller |
|
string |
Task method that was executed |
|
string |
Message to include in redirect |
|
string |
Type of message to include in redirect |
|
array |
Array of class methods |
|
string |
The name of the controller |
|
array |
Set of search directories for resources (views, models) |
|
string |
URL for redirection |
|
string |
Current or most recent task to be executed |
|
array |
Array of class methods to call for a given task |
Inherited from JObject:
JObject::_errors
Inherited from JObject:
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
|
Builds a new
Redefines JController __construct([$config = null])
|
|
This method adds one or more void addModelPath($path)
|
|
This method adds one or more void addViewPath($path)
|
|
If boolean authorize($task)
|
|
This method is provided as a default implementation; derived controller classes will normally override this method. The method uses void display([$cachable = false])
|
|
This method executes a task by triggering a method in a descendant class. If a mapped method for mixed execute($task)
|
|
This method returns a reference to a JModel &getModel([$name = ''], [$prefix = ''], [$config = array()])
|
|
This method returns the name of the controller. string getName()
|
|
This method returns the current task or the last task that was executed. string getTask()
|
|
This method gets a list of the available tasks in the controller and returns an array of task names. array getTasks()
|
|
This method returns a reference to a $view = $SomeController->getView('Item');This would attempt to instantiate the JView &getView([$name = ''], [$type = ''], [$prefix = ''], [$config = array()])
|
|
If a redirect has been set, this method redirects the browser and closes the application. boolean redirect()
|
|
This method registers the default task. The default task is the task that is executed when an attempt is made to execute a task that is not mapped to a method. void registerDefaultTask($method)
|
|
This method registers (maps) a task to a method in the class. void registerTask($task, $method)
|
|
This method sets the object authorization ACO section and ACO value. This is used by the void setAccessControl($section, [$value = null])
|
|
This method sets the internal message that is passed with a redirect. string setMessage($text)
|
|
This method sets the object redirect options. This is only used if the redirect method is called. Setting void setRedirect($url, [$msg = null], [$type = 'message'])
|
|
This private method adds search paths for void _addPath($type, $path)
|
|
This private method creates a filename based on string _createFileName($type, $parts)
|
|
This private method returns a reference to a new JModel &_createModel($name, [$prefix = ''], [$config = array()])
|
|
This private method returns a reference to a new mixed &_createView($name, [$prefix = ''], [$type = ''], [$config = array()])
|
|
This private method sets an entire array of search paths for void _addPath($type, $path)
|
Change the font size
Change margin width
Change background colour