FOFControllerFrameworkOnFramework 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 |
|---|---|
PostinstallControllerMessage
|
static FOFController
&getAnInstance
([string $option = null], [string $view = null], [array $config = array()])
static \className
&getTmpInstance
([string $option = null], [string $view = null], [array $config = array()])
FOFView
createView
(string $name, [string $prefix = ''], [string $type = ''], [array $config = array()])
FOFView
getView
([string $name = ''], [string $type = ''], [string $prefix = ''], [array $config = array()])
FOFView
&_createView
(string $name, [string $prefix = ''], [string $type = ''], [array $config = array()])
int
$autoRouting
= 0 (line 29)
string
$bareComponent
= 'foobar' (line 36)
The current component's name without the com_ prefix
string
$basePath
(line 43)
The base path of the controller
array
$cacheableTasks
= array('browse', 'read') (line 50)
The tasks for which caching should be enabled by default
string
$component
= 'com_foobar' (line 57)
The current component's name; you can override it in the configuration
array
$config
= array() (line 64)
A cached copy of the class configuration parameter passed during initialisation
FOFConfigProvider
$configProvider
= null (line 71)
An instance of FOFConfigProvider to provision configuration overrides
integer
$csrfProtection
= 2 (line 83)
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
string
$default_view
(line 90)
The default view for the display method.
string
$doTask
(line 97)
The mapped task that was performed.
boolean
$hasForm
= false (line 223)
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
string
$layout
= null (line 125)
The current layout; you can override it in the configuration
string
$message
(line 111)
Redirect message.
string
$messageType
(line 118)
Redirect message type.
array
$methods
(line 132)
Array of class methods
string
$modelName
= null (line 146)
Overrides the name of the view's default model
string
$model_prefix
(line 139)
The prefix of the models
array
$name
(line 181)
The name of the controller
array
$paths
(line 153)
The set of search directories for resources (views).
string
$redirect
(line 160)
URL for redirection.
string
$task
(line 167)
Current or most recently performed task.
array
$taskMap
(line 174)
Array of class methods to call for a given task.
string
$view
= '' (line 188)
The current view name; you can override it in the configuration
string
$viewName
= null (line 195)
Overrides the name of the view's default view
array
$viewsCache
= array() (line 209)
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