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, ?CMSApplication $app=null, ?Input $input=null) | |
delete () | |
publish () | |
reorder () | |
saveorder () | |
checkin () | |
saveOrderAjax () | |
runTransition () | |
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) | |
Fonctions membres protégées | |
postDeleteHook (BaseDatabaseModel $model, $id=null) | |
getRedirectToListAppend () | |
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 | |
$option | |
$text_prefix | |
$view_list | |
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 | |
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()) |
Attributs protégés statiques hérités de BaseController | |
static | $instance |
static | $views |
Base class for a Joomla Administrator Controller
Controller (controllers are where you put all the actual code) Provides basic functionality, such as rendering views (aka displaying templates).
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null , |
||
?CMSApplication | $app = null , |
||
?Input | $input = null |
||
) |
Constructor.
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 | $factory | The factory. |
CMSApplication | $app | The Application for the dispatcher |
Input | $input | The Input object for the request |
Références $app, $config, $input, $r, $this, Symfony\Contracts\Service\__construct(), elseif, ComponentHelper\getComponentName(), et Text\sprintf().
checkin | ( | ) |
Check in of one or more records.
Références $message, $model, $return, Route\_(), Joomla\Application\checkToken(), Text\plural(), et Text\sprintf().
delete | ( | ) |
Removes an item.
Références $model, Text\_(), Route\_(), Joomla\Application\checkToken(), et Text\plural().
|
protected |
Gets the URL arguments to append to a list redirect.
|
protected |
Function that allows child controller access to model data after the item has been deleted.
BaseDatabaseModel | $model | The data model object. |
integer | $id | The validated data. |
publish | ( | ) |
Method to publish a list of items
Références $data, $model, $task, $value, Text\_(), Route\_(), Joomla\Application\checkToken(), elseif, ArrayHelper\getValue(), null, et Text\plural().
reorder | ( | ) |
Changes the order of one or more records.
Références $message, $model, $return, Text\_(), Route\_(), Joomla\Application\checkToken(), et Text\sprintf().
runTransition | ( | ) |
Method to run Transition by id of item.
Références $message, $model, $return, Text\_(), Route\_(), Joomla\Application\checkToken(), et Text\sprintf().
saveorder | ( | ) |
Method to save the submitted ordering values for records.
Références $i, $message, $model, $return, Text\_(), Route\_(), Joomla\Application\checkToken(), et Text\sprintf().
saveOrderAjax | ( | ) |
Method to save the submitted ordering values for records via AJAX.
Références $i, $model, $return, et Joomla\Application\checkToken().
|
protected |
|
protected |
|
protected |