Difference between revisions of "JController"
From Joomla! Documentation
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JController}}
===Defined in==...) |
|||
Line 68: | Line 68: | ||
|Sets the access control levels. | |Sets the access control levels. | ||
|} | |} | ||
+ | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.application.component.controller' );</source> | <source lang="php">jimport( 'joomla.application.component.controller' );</source> |
Revision as of 04:57, 30 March 2010
The "API16" 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.
[Edit Descripton] Template:Description:JController
Defined in[edit]
libraries/joomla/application/component/controller.php
Methods[edit]
Method name | Description |
---|---|
getInstance | Method to get a singleton controller instance. |
addModelPath | Adds to the stack of model paths in LIFO order. |
addViewPath | Add one or more view paths to the controller's stack, in LIFO order. |
__construct | Constructor. |
execute | Execute a task by triggering a method in the derived class. |
authorize | Authorization check |
display | Typical view method for MVC based architecture |
redirect | Redirects the browser or returns false if no redirect is set. |
getModel | Method to get a model object, loading it if required. |
getTasks | Gets the available tasks in the controller. public array Array[i] of task names.
1.5 |
getTask | Get the last task that is or was to be performed. |
getName | Method to get the controller name |
getView | Method to get a reference to the current view and load it if necessary. |
registerTask | Register (map) a task to a method in the class. |
registerDefaultTask | Register the default task to perform if a mapping is not found. |
setMessage | Sets the internal message that is passed with a redirect |
setRedirect | Set a URL for browser redirection. |
setAccessControl | Sets the access control levels. |
Importing[edit]
jimport( 'joomla.application.component.controller' );
[Edit See Also] Template:SeeAlso:JController
Examples[edit]
<CodeExamplesForm />