FrameworkOnFramework controller class. FOF is based on the thin controller paradigm, where the controller is mainly used to set up the model state and spawn the view.
Located in /libraries/fof/controller/controller.php (line 20)
JObject | --FOFController
Class | Description |
---|---|
![]() |
The current component's name without the com_ prefix
The base path of the controller
The tasks for which caching should be enabled by default
The current component's name; you can override it in the configuration
A cached copy of the class configuration parameter passed during initialisation
An instance of FOFConfigProvider to provision configuration overrides
Set to true to enable CSRF protection on selected tasks. The possible
values are: 0 Disabled; no token checks are performed 1 Enabled; token checks are always performed 2 Only on HTML requests and backend; token checks are always performed in the back-end and in the front-end only when format is 'html' 3 Only on back-end; token checks are performer only in the back-end
The default view for the display method.
The mapped task that was performed.
Does this tried have a FOFForm which will be used to render it?
The input object for this MVC triad; you can override it in the configuration
The current layout; you can override it in the configuration
Redirect message.
Redirect message type.
Array of class methods
Overrides the name of the view's default model
The prefix of the models
The name of the controller
The set of search directories for resources (views).
URL for redirection.
Current or most recently performed task.
Array of class methods to call for a given task.
The current view name; you can override it in the configuration
Overrides the name of the view's default view
A cache for the view item objects created in this controller
Inherited from JObject
JObject::$_errors
Adds to the stack of model paths in LIFO order.
Create the filename for a resource.
Gets a static (Singleton) instance of a controller class. It loads the relevant controller file from the component's directory or, if it doesn't exist, creates a new controller object out of thin air.
Gets a temporary instance of a controller object. A temporary instance is not a Singleton and can be disposed off after use.
Public constructor of the Controller class
Sets the access to registered. Joomla! 1.5 compatibility.
Sets the access to special. Joomla! 1.5 compatibility.
Adds to the search path for templates and resources.
Add one or more view paths to the controller's stack, in LIFO order.
Authorisation check
Implements a default browse task, i.e. read a bunch of records and send them to the browser.
Cancel the edit, check in the record and return to the Browse task
Checks if the current user has enough privileges for the requested ACL area.
Creates a new model object
Creates a View object instance and returns it
Default task. Assigns a model to the view and asks the view to render itself.
YOU MUST NOT USETHIS TASK DIRECTLY IN A URL. It is supposed to be used ONLY inside your code. In the URL, use task=browse instead.
Single record edit. The ID set in the request is passed to the model, then the form layout is used to edit the result.
Executes a given controller task. The onBefore<task> and onAfter<task> methods are called automatically if they exist.
Method to get a model object, loading it if required.
Method to get the controller name
The dispatcher name is set by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor
Get the last task that is being performed or was most recently performed.
Returns the default model associated with the current view
Returns current view object
Method to get a reference to the current view and load it if necessary.
Returns true if there is a redirect set in the controller
ACL check before changing the access level; override to customise
ACL check before changing the access level; override to customise
ACL check before changing the access level; override to customise
ACL check before adding a new record; override to customise
ACL check before saving a new/modified record; override to customise
Execute something before applySave is called. Return false to prevent applySave from executing.
ACL check before editing a record; override to customise
A catch-all method for all tasks without a corresponding onBefore method. Applies the ACL preferences defined in fof.xml.
ACL check before changing the ordering of a record; override to customise
ACL check before changing the ordering of a record; override to customise
ACL check before changing the publish status of a record; override to customise
ACL check before removing a record; override to customise
ACL check before saving a new/modified record; override to customise
ACL check before saving a new/modified record; override to customise
ACL check before changing the ordering of a record; override to customise
ACL check before changing the publish status of a record; override to customise
Single record read. The id set in the request is passed to the model and then the item layout is used to render the result.
Redirects the browser or returns false if no redirect is set.
Register the default task to perform if a mapping is not found.
Register (map) a task to a method in the class.
Sets the access level of the selected item(s).
Sets the internal message that is passed with a redirect
Sets an entire array of search paths for resources.
Registers a redirection with an optional message. The redirection is carried out when you use the redirect method.
Sets the published state (the enabled field) of the selected item(s)
Set the name of the model to be used by this Controller
Set the name of the view to be used by this Controller
Unregister (unmap) a task in the class.
Method to load and return a model object.
Deprecated function to create a View object instance
Applies CSRF protection by means of a standard Joomla! token (nonce) check.
Raises a 403 Access Forbidden error through JError or an exception (depending the Joomla! version) if the check fails.
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:57:21 +0100 by phpDocumentor 1.4.3