![]() |
Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
add () | |
batch ($model) | |
cancel ($key=null) | |
edit ($key=null, $urlVar=null) | |
getModel ($name='', $prefix='', $config=array('ignore_request'=> true)) | |
loadhistory () | |
save ($key=null, $urlVar=null) | |
reload ($key=null, $urlVar=null) | |
editAssociations () | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
addViewPath ($path) | |
authorise ($task) | |
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 protégées | |
allowAdd ($data=array()) | |
allowEdit ($data=array(), $key='id') | |
allowSave ($data, $key='id') | |
getRedirectToItemAppend ($recordId=null, $urlVar='id') | |
getRedirectToListAppend () | |
postSaveHook (\JModelLegacy $model, $validData=array()) | |
![]() | |
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 | |
$context | |
$option | |
$view_item | |
$view_list | |
$text_prefix | |
![]() | |
$basePath | |
$default_view | |
$doTask | |
$message | |
$messageType | |
$methods | |
$name | |
$model_prefix | |
$paths | |
$redirect | |
$task | |
$taskMap | |
$input | |
$factory | |
Membres hérités additionnels | |
![]() | |
static | addModelPath ($path, $prefix='') |
static | createFileName ($type, $parts=array()) |
static | getInstance ($prefix, $config=array()) |
![]() | |
static | $instance |
static | $views |
Controller tailored to suit most form-based admin operations.
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null |
||
) |
add | ( | ) |
|
protected |
|
protected |
Method to check if you can edit an existing record.
Extended classes can override this if necessary.
array | $data | An array of input data. |
string | $key | The name of the key for the primary key; default is id. |
Références option.
|
protected |
batch | ( | $model | ) |
cancel | ( | $key = null | ) |
Method to edit an existing record.
string | $key | The name of the primary key of the URL variable. |
string | $urlVar | The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). |
editAssociations | ( | ) |
getModel | ( | $name = '' , |
|
$prefix = '' , |
|||
$config = array('ignore_request' => true) |
|||
) |
Gets the URL arguments to append to an item redirect.
integer | $recordId | The primary key id for the item. |
string | $urlVar | The name of the URL variable for the id. |
Références $forcedLanguage, $layout, $return, $tmpl, et null.
|
protected |
Gets the URL arguments to append to a list redirect.
Références $forcedLanguage, et $tmpl.
loadhistory | ( | ) |
|
protected |
Function that allows child controller access to model data after the data has been saved.
\JModelLegacy | $model | The data model object. |
array | $validData | The validated data. |
Method to reload a record.
string | $key | The name of the primary key of the URL variable. |
string | $urlVar | The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). |
We need the filtered value of calendar fields because the UTC normalision is done in the filter and on output. This would apply the Timezone offset on reload. We set the calendar values we save to the processed date.
Method to save a record.
string | $key | The name of the primary key of the URL variable. |
string | $urlVar | The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). |
We need the filtered value of calendar fields because the UTC normalision is done in the filter and on output. This would apply the Timezone offset on reload. We set the calendar values we save to the processed date.
Références $app, $context, $data, $field, $form, $i, $key, $n, $prefix, $return, $task, $url, null, et option.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |