![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de FOFIntegrationJoomlaFilesystem:Fonctions membres publiques | |
| __construct () | |
| fileExists ($path) | |
| fileDelete ($file) | |
| fileCopy ($src, $dest, $path=null, $use_streams=false) | |
| fileWrite ($file, &$buffer, $use_streams=false) | |
| pathCheck ($path) | |
| pathClean ($path, $ds=DIRECTORY_SEPARATOR) | |
| pathFind ($paths, $file) | |
| folderExists ($path) | |
| folderFiles ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*', '.*~'), $naturalSort=false) | |
| folderFolders ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*')) | |
| folderCreate ($path='', $mode=0755) | |
Fonctions membres publiques hérités de FOFPlatformFilesystem | |
| getExt ($file) | |
| stripExt ($file) | |
Fonctions membres publiques hérités de FOFPlatformFilesystemInterface | |
| fileCopy ($src, $dest) | |
| fileWrite ($file, &$buffer) | |
| folderFiles ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*', '.*~')) | |
Membres hérités additionnels | |
Fonctions membres protégées statiques hérités de FOFPlatformFilesystem | |
| static | getFiles ($path, array $ignoreFolders=array(), array $ignoreFiles=array()) |
| static | scanDirectory ($path, array $ignoreFolders=array(), array $ignoreFiles=array()) |
Attributs protégés statiques hérités de FOFPlatformFilesystem | |
| static | $paths = array() |
| __construct | ( | ) |
Références JLoader\import().
Copies a file
| string | $src | The path to the source file |
| string | $dest | The path to the destination file |
| string | $path | An optional base path to prefix to the file names |
| boolean | $use_streams | True to use streams @return boolean True on success |
Références $path.
| fileDelete | ( | $file | ) |
Delete a file or array of files
| mixed | $file | The file name or an array of file names |
Implémente FOFPlatformFilesystemInterface.
Références $file.
| fileExists | ( | $path | ) |
Does the file exists?
| $path | string Path to the file to test |
Implémente FOFPlatformFilesystemInterface.
Références $path.
| fileWrite | ( | $file, | |
| & | $buffer, | ||
$use_streams = false |
|||
| ) |
| folderCreate | ( | $path = '', |
|
$mode = 0755 |
|||
| ) |
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. |
Implémente FOFPlatformFilesystemInterface.
| folderExists | ( | $path | ) |
Wrapper for the standard file_exists function
| string | $path | Folder name relative to installation dir |
Implémente FOFPlatformFilesystemInterface.
Références $path.
| folderFiles | ( | $path, | |
$filter = '.', |
|||
$recurse = false, |
|||
$full = false, |
|||
$exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'), |
|||
$excludefilter = array('^\..*', '.*~'), |
|||
$naturalSort = false |
|||
| ) |
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 @return array Files in the given folder. |
| folderFolders | ( | $path, | |
$filter = '.', |
|||
$recurse = false, |
|||
$full = false, |
|||
$exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'), |
|||
$excludefilter = array('^\..*') |
|||
| ) |
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. |
Implémente FOFPlatformFilesystemInterface.
| pathCheck | ( | $path | ) |
Checks for snooping outside of the file system root.
| string | $path | A file system path to check. |
| Exception |
Implémente FOFPlatformFilesystemInterface.
Références $path.
| pathClean | ( | $path, | |
$ds = DIRECTORY_SEPARATOR |
|||
| ) |
Function to strip additional / or \ in a path name.
| string | $path | The path to clean. |
| string | $ds | Directory separator (optional). |
| UnexpectedValueException |
Implémente FOFPlatformFilesystemInterface.
Références $path.
| pathFind | ( | $paths, | |
| $file | |||
| ) |
Searches the directory paths for a given file.
| mixed | $paths | An path string or array of path strings to search in |
| string | $file | The file name to look for. |
Implémente FOFPlatformFilesystemInterface.
Références $file.