|
| getExt ($file) |
|
| stripExt ($file) |
|
| fileExists ($path) |
|
| fileDelete ($file) |
|
| fileCopy ($src, $dest) |
|
| fileWrite ($file, &$buffer) |
|
| 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('^\..*', '.*~')) |
|
| folderFolders ($path, $filter='.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS', '.DS_Store', '__MACOSX'), $excludefilter=array('^\..*')) |
|
| folderCreate ($path='', $mode=0755) |
|
|
static | getFiles ($path, array $ignoreFolders=array(), array $ignoreFiles=array()) |
|
static | scanDirectory ($path, array $ignoreFolders=array(), array $ignoreFiles=array()) |
|
◆ getExt()
Gets the extension of a file name
- Paramètres
-
- Renvoie
- string The file extension
Références $file.
◆ getFiles()
static getFiles |
( |
|
$path, |
|
|
array |
$ignoreFolders = array() , |
|
|
array |
$ignoreFiles = array() |
|
) |
| |
|
staticprotected |
This method will crawl a starting directory and get all the valid files that will be analyzed by getInstance. Then it organizes them into an associative array.
- Paramètres
-
string | $path | Folder where we should start looking |
array | $ignoreFolders | Folder ignore list |
array | $ignoreFiles | File ignore list |
- Renvoie
- array Associative array, where the
fullpath
key contains the path to the file, and the classname
key contains the name of the class
Références $file, $files, $parts, $path, et $return.
◆ scanDirectory()
static scanDirectory |
( |
|
$path, |
|
|
array |
$ignoreFolders = array() , |
|
|
array |
$ignoreFiles = array() |
|
) |
| |
|
staticprotected |
Recursive function that will scan every directory unless it's in the ignore list. Files that aren't in the ignore list are returned.
- Paramètres
-
string | $path | Folder where we should start looking |
array | $ignoreFolders | Folder ignore list |
array | $ignoreFiles | File ignore list |
- Renvoie
- array List of all the files
Références $file, $path, et $return.
◆ stripExt()
Strips the last extension off of a file name
- Paramètres
-
- Renvoie
- string The file name without the extension
Références $file.
◆ $paths
La documentation de cette classe a été générée à partir du fichier suivant :