Difference between revisions of "JController"
From Joomla! Documentation
m (JoomlaWikiBot moved page JController/11.1 to API17:JController without leaving a redirect: Robot: Moved page) |
m (→User contributed notes: moving preparation) |
||
Line 148: | Line 148: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 10:15, 11 May 2013
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JController[edit]
Description[edit]
Template:Description:JController [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | addViewPath | Add one or more view paths to the controller's stack, in LIFO order. |
public | authorise | Authorisation check. |
public | authorize | Authorisation check. |
public | display | Typical view method for MVC based architecture. |
public | execute | Execute a task by triggering a method in the derived class. |
public | getModel | Method to get a model object, loading it if required. |
public | getName | Method to get the controller name. |
public | getTask | Get the last task that is being performed or was most recently performed. |
public | getTasks | Gets the available tasks in the controller. |
public | getView | Method to get a reference to the current view and load it if necessary. |
public | redirect | Redirects the browser or returns false if no redirect is set. |
public | registerDefaultTask | Register the default task to perform if a mapping is not found. |
public | registerTask | Register (map) a task to a method in the class. |
public | setAccessControl | Sets the access control levels. |
public | setMessage | Sets the internal message that is passed with a redirect. |
public | setRedirect | Set a URL for browser redirection. |
public static | addModelPath | Adds to the stack of model paths in LIFO order. |
public static | getInstance | Method to get a singleton controller instance. |
protected | addPath | Adds to the search path for templates and resources. |
protected | checkEditId | Method to check whether an ID is in the edit list. |
protected | createModel | Method to load and return a model object. |
protected | createView | Method to load and return a view object. |
protected | holdEditId | Method to add a record ID to the edit list. |
protected | releaseEditId | Method to check whether an ID is in the edit list. |
protected | setPath | Sets an entire array of search paths for resources. |
protected static | createFileName | Create the filename for a resource. |
- Defined in libraries/joomla/application/component/controller.php
- Extends JObject
- Extended by
Importing[edit]
jimport( 'joomla.application.component.controller' );
See also[edit]
- JController source code on BitBucket
- Subpackage Application
- Other versions of JController
Template:SeeAlso:JController [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />