Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques statiques | |
static | copy ($src, $dest, $path= '', $force=false, $use_streams=false) |
static | create ($path= '', $mode=0755) |
static | delete ($path) |
static | move ($src, $dest, $path= '', $use_streams=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, $excludefilter_string, $findfiles) |
Définition à la ligne 21 du fichier folder.php.
|
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 | $excludefilter_string | Regexp of files to exclude |
boolean | $findfiles | True to read the files, false to read the folders |
Définition à la ligne 601 du fichier folder.php.
|
static |
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 | $use_streams | Optionally force folder/file overwrites. |
RuntimeException |
Définition à la ligne 37 du fichier folder.php.
Références JPath\clean(), JClientHelper\getCredentials(), JClientFtp\getInstance(), et JFactory\getStream().
|
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. |
Définition à la ligne 170 du fichier folder.php.
Références JText\_(), JLog\add(), JPath\clean(), JClientHelper\getCredentials(), JClientFtp\getInstance(), et JLog\WARNING.
Référencé par JFile\copy(), JArchive\extract(), JArchiveTar\extract(), JArchiveZip\extractCustom(), JArchiveZip\extractNative(), JLogLoggerFormattedtext\initFile(), JFile\upload(), JFile\write(), et JApplicationDaemon\writeProcessIdFile().
|
static |
Delete a folder.
string | $path | The path to the folder to delete. |
UnexpectedValueException |
Définition à la ligne 295 du fichier folder.php.
Références JText\_(), JLog\add(), JPath\clean(), JFile\delete(), JClientHelper\getCredentials(), JClientFtp\getInstance(), jimport(), JText\sprintf(), et JLog\WARNING.
Référencé par JCacheStorageCachelite\clean().
|
static |
Wrapper for the standard file_exists function
string | $path | Folder name relative to installation dir |
Définition à la ligne 479 du fichier folder.php.
Références JPath\clean().
|
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 |
Définition à la ligne 499 du fichier folder.php.
Références JLog\add(), JPath\clean(), JText\sprintf(), et JLog\WARNING.
Référencé par JFormFieldModulelayout\getInput(), JFormFieldComponentlayout\getInput(), et JFormFieldFileList\getOptions().
|
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. |
Définition à la ligne 553 du fichier folder.php.
Références JLog\add(), JPath\clean(), JText\sprintf(), et JLog\WARNING.
Référencé par JTableMenu\check(), et JFormFieldFolderList\getOptions().
|
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. |
Définition à la ligne 673 du fichier folder.php.
Références $GLOBALS, et JPath\clean().
|
static |
Makes path name safe to use.
string | $path | The full path to sanitise. |
Définition à la ligne 710 du fichier folder.php.
|
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 | $use_streams | Optionally use streams. |
Définition à la ligne 406 du fichier folder.php.
Références JText\_(), JPath\clean(), JClientHelper\getCredentials(), JClientFtp\getInstance(), JFactory\getStream(), et JText\sprintf().