Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getFile ($adapter, $path='/', $options=[]) | |
getFiles ($adapter, $path='/', $options=[]) | |
createFolder ($adapter, $name, $path, $override) | |
createFile ($adapter, $name, $path, $data, $override) | |
updateFile ($adapter, $name, $path, $data) | |
delete ($adapter, $path) | |
copy ($adapter, $sourcePath, $destinationPath, $force=false) | |
move ($adapter, $sourcePath, $destinationPath, $force=false) | |
getUrl ($adapter, $path) | |
search ($adapter, $needle, $path='/', $recursive=true) | |
Fonctions membres publiques hérités de BaseDatabaseModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
Fonctions membres publiques hérités de BaseModel | |
__construct ($config=array()) | |
getName () | |
Fonctions membres publiques hérités de CMSObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
Fonctions membres publiques hérités de StatefulModelInterface | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de CurrentUserInterface | |
setCurrentUser (User $currentUser) | |
Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
Fonctions membres publiques hérités de DatabaseAwareInterface | |
setDatabase (DatabaseInterface $db) | |
Fonctions membres privées | |
isMediaFile ($path) | |
Attributs privés | |
$allowedExtensions = null | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseModel | |
static | addIncludePath ($path='', $prefix='') |
Fonctions membres protégées hérités de BaseDatabaseModel | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Attributs protégés hérités de BaseDatabaseModel | |
$option = null | |
$event_clean_cache = null | |
Attributs protégés hérités de BaseModel | |
$name | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
copy | ( | $adapter, | |
$sourcePath, | |||
$destinationPath, | |||
$force = false |
|||
) |
Copies file or folder from source path to destination path If forced, existing files/folders would be overwritten
string | $adapter | The adapter |
string | $sourcePath | Source path of the file or folder (relative) |
string | $destinationPath | Destination path(relative) |
bool | $force | Force to overwrite |
Références Joomla\Component\Media\Administrator\Provider\getAdapter().
createFile | ( | $adapter, | |
$name, | |||
$path, | |||
$data, | |||
$override | |||
) |
Creates a file with the given name in the given path with the data. More information can be found in AdapterInterface::createFile().
string | $adapter | The adapter |
string | $name | The name |
string | $path | The folder |
string | $data | The data |
boolean | $override | Should the file being overridden when it exists |
Références $app, $data, $name, $path, $result, Joomla\Component\Media\Administrator\Provider\getAdapter(), Factory\getApplication(), File\getExt(), et PluginHelper\importPlugin().
createFolder | ( | $adapter, | |
$name, | |||
$path, | |||
$override | |||
) |
Creates a folder with the given name in the given path. More information can be found in AdapterInterface::createFolder().
string | $adapter | The adapter |
string | $name | The name |
string | $path | The folder |
boolean | $override | Should the folder being overridden when it exists |
Références $app, $name, $path, $result, Joomla\Component\Media\Administrator\Provider\getAdapter(), Factory\getApplication(), et PluginHelper\importPlugin().
delete | ( | $adapter, | |
$path | |||
) |
Deletes the folder or file of the given path. More information can be found in AdapterInterface::delete().
string | $adapter | The adapter |
string | $path | The path to the file or folder |
Références $app, $path, $result, $this, $type, Joomla\Component\Media\Administrator\Provider\getAdapter(), Factory\getApplication(), et PluginHelper\importPlugin().
getFile | ( | $adapter, | |
$path = '/' , |
|||
$options = [] |
|||
) |
Returns the requested file or folder information. More information can be found in AdapterInterface::getFile().
string | $adapter | The adapter |
string | $path | The path to the file or folder |
array | $options | The options |
Références $options, $path, $this, Joomla\Component\Media\Administrator\Provider\getAdapter(), et Factory\getApplication().
getFiles | ( | $adapter, | |
$path = '/' , |
|||
$options = [] |
|||
) |
Returns the folders and files for the given path. More information can be found in AdapterInterface::getFiles().
string | $adapter | The adapter |
string | $path | The folder |
array | $options | The options |
Références $key, $options, $path, $this, Joomla\Component\Media\Administrator\Provider\getAdapter(), Factory\getApplication(), et null.
getUrl | ( | $adapter, | |
$path | |||
) |
Returns a url for serve media files from adapter. Url must provide a valid image type to be displayed on Joomla! site.
string | $adapter | The adapter |
string | $path | The relative path for the file |
FileNotFoundException |
Références $path, $url, Joomla\Component\Media\Administrator\Provider\getAdapter(), et Factory\getApplication().
|
private |
Checks if the given path is an allowed media file.
string | $path | The path to file |
Références $extension, $images, $mediaTypes, $path, $type, Factory\getApplication(), ComponentHelper\getParams(), et null.
move | ( | $adapter, | |
$sourcePath, | |||
$destinationPath, | |||
$force = false |
|||
) |
Moves file or folder from source path to destination path If forced, existing files/folders would be overwritten
string | $adapter | The adapter |
string | $sourcePath | Source path of the file or folder (relative) |
string | $destinationPath | Destination path(relative) |
bool | $force | Force to overwrite |
Références Joomla\Component\Media\Administrator\Provider\getAdapter().
search | ( | $adapter, | |
$needle, | |||
$path = '/' , |
|||
$recursive = true |
|||
) |
Search for a pattern in a given path
string | $adapter | The adapter to work on |
string | $needle | The search therm |
string | $path | The base path for the search |
bool | $recursive | Do a recursive search |
Références $path, et Joomla\Component\Media\Administrator\Provider\getAdapter().
updateFile | ( | $adapter, | |
$name, | |||
$path, | |||
$data | |||
) |
Updates the file with the given name in the given path with the data. More information can be found in AdapterInterface::updateFile().
string | $adapter | The adapter |
string | $name | The name |
string | $path | The folder |
string | $data | The data |
Références $app, $data, $name, $path, $result, Joomla\Component\Media\Administrator\Provider\getAdapter(), Factory\getApplication(), File\getExt(), et PluginHelper\importPlugin().
|
private |