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 | |
copy ($src, $dest, $path='', $force=false, $useStreams=false) | |
create ($path='', $mode=493) | |
delete ($path) | |
move ($src, $dest, $path='', $useStreams=false) | |
exists ($path) | |
files ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*', '.*~'), $naturalSort=false) | |
folders ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*')) | |
listFolderTree ($path, $filter, $maxLevel=3, $level=0, $parent=0) | |
makeSafe ($path) | |
Helper wrapper method for copy
string | $src | The path to the source folder. |
string | $dest | The path to the destination folder. |
string | $path | An optional base path to prefix to the file names. |
boolean | $force | Force copy. |
boolean | $useStreams | Optionally force folder/file overwrites. |
RuntimeException |
Références $path, et Folder\copy().
create | ( | $path = '' , |
|
$mode = 493 |
|||
) |
Helper wrapper method for create
string | $path | A path to create from the base path. |
integer | $mode | Directory permissions to set for folders created. 0755 by default. |
Références $mode, $path, et Folder\create().
Référencé par File\copy(), et File\upload().
delete | ( | $path | ) |
Helper wrapper method for delete
string | $path | The path to the folder to delete. |
UnexpectedValueException |
Références $path, et Folder\delete().
exists | ( | $path | ) |
Helper wrapper method for exists
string | $path | Folder name relative to installation dir. |
Références $path, et Folder\exists().
files | ( | $path, | |
$filter = '.' , |
|||
$recurse = false , |
|||
$full = false , |
|||
$exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX') , |
|||
$excludefilter = array('^\..*', '.*~') , |
|||
$naturalSort = false |
|||
) |
Helper wrapper method for files
string | $path | The path of the folder to read. |
string | $filter | A filter for file names. |
mixed | $recurse | True to recursively search into sub-folders, or an integer to specify the maximum depth. |
boolean | $full | True to return the full path to the file. |
array | $exclude | Array with names of files which should not be shown in the result. |
array | $excludefilter | Array of filter to exclude. |
boolean | $naturalSort | False for asort, true for natsort. |
Références $filter, $path, et Folder\files().
folders | ( | $path, | |
$filter = '.' , |
|||
$recurse = false , |
|||
$full = false , |
|||
$exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX') , |
|||
$excludefilter = array('^\..*') |
|||
) |
Helper wrapper method for folders
string | $path | The path of the folder to read. |
string | $filter | A filter for folder names. |
mixed | $recurse | True to recursively search into sub-folders, or an integer to specify the maximum depth. |
boolean | $full | True to return the full path to the folders. |
array | $exclude | Array with names of folders which should not be shown in the result. |
array | $excludefilter | Array with regular expressions matching folders which should not be shown in the result. |
Références $filter, $path, et Folder\folders().
listFolderTree | ( | $path, | |
$filter, | |||
$maxLevel = 3 , |
|||
$level = 0 , |
|||
$parent = 0 |
|||
) |
Helper wrapper method for listFolderTree
string | $path | The path of the folder to read. |
string | $filter | A filter for folder names. |
integer | $maxLevel | The maximum number of levels to recursively read, defaults to three. |
integer | $level | The current level, optional. |
integer | $parent | Unique identifier of the parent folder, if any. |
Références $filter, $path, et Folder\listFolderTree().
makeSafe | ( | $path | ) |
Helper wrapper method for makeSafe
string | $path | The full path to sanitise. |
Références $path, et Folder\makeSafe().
move | ( | $src, | |
$dest, | |||
$path = '' , |
|||
$useStreams = false |
|||
) |
Helper wrapper method for move
string | $src | The path to the source folder. |
string | $dest | The path to the destination folder. |
string | $path | An optional base path to prefix to the file names. |
boolean | $useStreams | Optionally use streams. |
Références $path, et Folder\move().