Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array(), MVCFactoryInterface $factory=null, $app=null, $input=null) | |
display ($cachable=false, $urlparams=false) | |
Fonctions membres publiques hérités de BaseController | |
__construct ($config=array(), MVCFactoryInterface $factory=null, ?CMSApplication $app=null, ?Input $input=null) | |
addViewPath ($path) | |
execute ($task) | |
getModel ($name='', $prefix='', $config=array()) | |
getName () | |
getTask () | |
getTasks () | |
getView ($name='', $type='', $prefix='', $config=array()) | |
redirect () | |
registerDefaultTask ($method) | |
registerTask ($task, $method) | |
unregisterTask ($task) | |
setMessage ($text, $type='message') | |
checkToken ($method='post', $redirect=true) | |
setRedirect ($url, $msg=null, $type=null) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseController | |
static | addModelPath ($path, $prefix='') |
static | createFileName ($type, $parts=array()) |
static | getInstance ($prefix, $config=array()) |
Fonctions membres protégées hérités de BaseController | |
addPath ($type, $path) | |
checkEditId ($context, $id) | |
createModel ($name, $prefix='', $config=array()) | |
createView ($name, $prefix='', $type='', $config=array()) | |
holdEditId ($context, $id) | |
releaseEditId ($context, $id) | |
setPath ($type, $path) | |
Attributs protégés hérités de BaseController | |
$basePath | |
$default_view | |
$doTask | |
$message | |
$messageType | |
$methods | |
$name | |
$model_prefix | |
$paths | |
$redirect | |
$task | |
$taskMap | |
$input | |
$factory | |
$app | |
Attributs protégés statiques hérités de BaseController | |
static | $instance |
static | $views |
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null , |
||
$app = null , |
|||
$input = null |
|||
) |
array | $config | An optional associative array of configuration settings. Recognized key values include 'name', 'default_task', 'model_path', and 'view_path' (this list is not meant to be comprehensive). |
MVCFactoryInterface | null | $factory | The factory. |
CMSApplication | null | $app | The Application for the dispatcher |
\Joomla\CMS\Input\Input | null | $input | The Input object for the request |
Références $app, $config, $input, Symfony\Contracts\Service\__construct(), elseif, et Factory\getApplication().
Method to display a view.
boolean | $cachable | If true, the view output will be cached. |
boolean | $urlparams | An array of safe URL parameters and their variable types, for valid values see JFilterInput::clean(). |
Set the default view name and format from the Request. Note we are using a_id to avoid collisions with the router and the return page. Frontend is a bit messier than the backend.
Références $id, $model, $this, $user, ComponentHelper\getParams(), et Text\sprintf().