Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
displayList () | |
displayItem ($path='') | |
add () | |
edit () | |
delete ($id=null) | |
Fonctions membres publiques hérités de ApiController | |
__construct ($config=array(), MVCFactoryInterface $factory=null, ?CMSApplication $app=null, ?Input $input=null) | |
add () | |
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 | |
allowAdd ($data=array()) | |
allowEdit ($data=array(), $key='id') | |
allowDelete () | |
Fonctions membres protégées hérités de ApiController | |
allowEdit ($data=array(), $key='id') | |
allowAdd ($data=array()) | |
preprocessSaveData (array $data) | |
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 | |
$contentType = 'media' | |
$default_view = 'media' | |
Attributs protégés hérités de ApiController | |
$contentType | |
$option | |
$text_prefix | |
$context | |
$itemsPerPage = 20 | |
$modelState | |
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 | |
Fonctions membres privées | |
setModelState (array $mappings) | |
checkContent () | |
Attributs privés statiques | |
static | $listQueryModelStateMap |
static | $itemQueryModelStateMap |
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 |
Media web service controller.
add | ( | ) |
Method to add a new file or folder.
FileExistsException | |
InvalidPathException | |
InvalidParameterException | |
Références $content, $path, et Text\sprintf().
|
protected |
Method to check if it's allowed to add a new file or folder
array | $data | An array of input data. |
Références $user.
|
protected |
Method to check if it's allowed to delete an existing file or folder.
Références $user.
|
protected |
Method to check if it's allowed to modify an existing file or folder.
array | $data | An array of input data. |
Références $user.
|
private |
Performs various checks to see if it is allowed to save the content.
Références $helper, $params, Text\_(), et ComponentHelper\getParams().
delete | ( | $id = null | ) |
Method to delete an existing file or folder.
InvalidPathException | |
Références $model, et Inflector\singularize().
displayItem | ( | $path = '' | ) |
Display one specific file or folder.
string | $path | The path of the file to display. Leave empty if you want to retrieve data from the request. |
InvalidPathException | |
Références $path.
displayList | ( | ) |
Display a list of files and/or folders.
Références InputFilter\getInstance().
edit | ( | ) |
Method to modify an existing file or folder.
FileExistsException | |
InvalidPathException | |
Références $content, $path, $recordId, et Text\sprintf().
|
private |
Set model state using a list of mappings between query parameters and model state names.
array | $mappings | A list of mappings between query parameters and model state names. |
|
protected |
|
protected |
|
staticprivate |
|
staticprivate |