메소드 | 설명 | |
---|---|---|
__construct ( |
Public constructor. | |
fileCopy ( string $src, string $dest ) : boolean | Copies a file | |
fileDelete ( mixed $file ) : boolean | Delete a file or array of files | |
fileExists ( $path ) : boolean | Does the file exists? | |
fileWrite ( string $file, &$buffer ) : boolean | Write contents to a file | |
folderCreate ( string $path = '', integer $mode = 493 ) : boolean | Create a folder -- and all necessary parent folders. | |
folderExists ( string $path ) : boolean | Wrapper for the standard file_exists function | |
folderFiles ( string $path, string $filter = '.', mixed $recurse = false, boolean $full = false, array $exclude = ['.svn', 'CVS', '.DS_Store', '__MACOSX'], array $excludefilter = ['^\..*', '.*~'] ) : array | Utility function to read the files in a folder. | |
folderFolders ( string $path, string $filter = '.', mixed $recurse = false, boolean $full = false, array $exclude = ['.svn', 'CVS', '.DS_Store', '__MACOSX'], array $excludefilter = ['^\..*'] ) : array | Utility function to read the folders in a folder. | |
getExt ( string $file ) : string | Gets the extension of a file name | |
pathCheck ( string $path ) : string | Checks for snooping outside of the file system root. | |
pathClean ( string $path, string $ds = DIRECTORY_SEPARATOR ) : string | Function to strip additional / or \ in a path name. | |
pathFind ( mixed $paths, string $file ) : mixed | Searches the directory paths for a given file. | |
stripExt ( string $file ) : string | Strips the last extension off of a file name |
public __construct ( |
||
$c | The component container |
public fileDelete ( mixed $file ) : boolean | ||
$file | mixed | The file name or an array of file names |
리턴 | boolean | True on success |
public fileExists ( $path ) : boolean | ||
$path | string Path to the file to test | |
리턴 | boolean |
public folderExists ( string $path ) : boolean | ||
$path | string | Folder name relative to installation dir |
리턴 | boolean | True if path is a folder |
public folderFiles ( string $path, string $filter = '.', mixed $recurse = false, boolean $full = false, array $exclude = ['.svn', 'CVS', '.DS_Store', '__MACOSX'], array $excludefilter = ['^\..*', '.*~'] ) : array | ||
$path | string | The path of the folder to read. |
$filter | string | A filter for file names. |
$recurse | mixed | True to recursively search into sub-folders, or an integer to specify the maximum depth. |
$full | boolean | True to return the full path to the file. |
$exclude | array | Array with names of files which should not be shown in the result. |
$excludefilter | array | Array of filter to exclude |
리턴 | array | Files in the given folder. |
public folderFolders ( string $path, string $filter = '.', mixed $recurse = false, boolean $full = false, array $exclude = ['.svn', 'CVS', '.DS_Store', '__MACOSX'], array $excludefilter = ['^\..*'] ) : array | ||
$path | string | The path of the folder to read. |
$filter | string | A filter for folder names. |
$recurse | mixed | True to recursively search into sub-folders, or an integer to specify the maximum depth. |
$full | boolean | True to return the full path to the folders. |
$exclude | array | Array with names of folders which should not be shown in the result. |
$excludefilter | array | Array with regular expressions matching folders which should not be shown in the result. |
리턴 | array | Folders in the given folder. |