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 statiques | |
static | copy ($src, $dest, $path='', $force=false, $useStreams=false) |
static | create ($path='', $mode=0755) |
static | delete ($path) |
static | move ($src, $dest, $path='', $useStreams=false) |
static | exists ($path) |
static | files ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludeFilter=array('^\..*', '.*~'), $naturalSort=false) |
static | folders ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludeFilter=array('^\..*')) |
static | listFolderTree ($path, $filter, $maxLevel=3, $level=0, $parent=0) |
static | makeSafe ($path) |
Fonctions membres protégées statiques | |
static | _items ($path, $filter, $recurse, $full, $exclude, $excludeFilterString, $findFiles) |
A Folder handling class
|
staticprotected |
Function to read the files/folders in a folder.
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. |
string | $excludeFilterString | Regexp of files to exclude |
boolean | $findFiles | True to read the files, false to read the folders |
Copy a folder.
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. |
Références $file, $path, PathWrapper\clean(), DIRECTORY_SEPARATOR, ClientHelper\getCredentials(), FtpClient\getInstance(), Factory\getStream(), JPATH_ROOT, null, et Path\removeRoot().
Référencé par FolderWrapper\copy().
|
static |
Create a folder – and all necessary parent folders.
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, Text\_(), Log\add(), ClientHelper\getCredentials(), FtpClient\getInstance(), JPATH_ROOT, null, et Log\WARNING.
Référencé par FolderWrapper\create().
|
static |
Delete a folder.
string | $path | The path to the folder to delete. |
Références $file, $files, $folder, $path, Text\_(), Log\add(), elseif, ClientHelper\getCredentials(), FtpClient\getInstance(), JPATH_ROOT, Text\sprintf(), et Log\WARNING.
Référencé par FolderWrapper\delete().
|
static |
Wrapper for the standard file_exists function
string | $path | Folder name relative to installation dir |
Références $path.
Référencé par FolderWrapper\exists().
|
static |
Utility function to read the files in a folder.
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, Log\add(), Text\sprintf(), et Log\WARNING.
Référencé par FolderWrapper\files().
|
static |
Utility function to read the folders in a folder.
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, Log\add(), Text\sprintf(), et Log\WARNING.
Référencé par FolderWrapper\folders().
|
static |
Lists folder in format suitable for tree display.
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, $GLOBALS, $id, $name, $path, et JPATH_ROOT.
Référencé par FolderWrapper\listFolderTree().
|
static |
Makes path name safe to use.
string | $path | The full path to sanitise. |
Références $path.
Référencé par FolderWrapper\makeSafe().
|
static |
Moves a folder.
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, Text\_(), PathWrapper\clean(), ClientHelper\getCredentials(), FtpClient\getInstance(), Factory\getStream(), JPATH_ROOT, et Text\sprintf().
Référencé par FolderWrapper\move().