|
Ubiquity 2.5.2
php rapid development framework
|
File system utilities Ubiquity\utils\base$UFileSystem This class is part of Ubiquity. More...
Inheritance diagram for UFileSystem:Static Public Member Functions | |
| static | glob_recursive ($pattern, $flags=0) |
| Find recursively pathnames matching a pattern. | |
| static | deleteAllFilesFromFolder ($folder, $mask=' *') |
| Deletes all files from a folder (not in subfolders) | |
| static | deleteFile ($filename) |
| Deletes a file, in safe mode. | |
| static | safeMkdir ($dir, $mode=0777, $recursive=true) |
| Tests the existance and eventually creates a directory. | |
| static | cleanPathname ($path) |
| Cleans a directory path by removing double backslashes or slashes and using DIRECTORY_SEPARATOR. | |
| static | cleanFilePathname ($path) |
| Cleans a file path by removing double backslashes or slashes and using DIRECTORY_SEPARATOR. | |
| static | tryToRequire ($file) |
| Try to require a file, in safe mode. | |
| static | lastModified ($filename) |
| Gets file modification time. | |
| static | load ($filename) |
| Reads entire file into a string in safe mode. | |
| static | getDirFromNamespace ($ns) |
| Returns the directory base on ROOT, corresponding to a namespace. | |
| static | delTree ($dir) |
| Deletes recursivly a folder and its content. | |
| static | getLines ($filename, $reverse=false, $maxLines=null, $lineCallback=null) |
| Returns the lines of a file in an array. | |
| static | relativePath ($from, $to, $separator=DIRECTORY_SEPARATOR) |
| Returns relative path between two sources. | |
Static Public Member Functions inherited from UFileSystemWriter | |
| static | openReplaceInTemplateFile ($source, $keyAndValues) |
| static | openReplaceWriteFromTemplateFile ($source, $destination, $keyAndValues) |
| static | replaceFromTemplate ($content, $keyAndValues) |
| static | replaceWriteFromContent ($content, $destination, $keyAndValues) |
| static | save ($filename, $content, $flags=LOCK_EX) |
| static | xcopy ($source, $dest, $permissions=0755) |
| static | xmove (string $source, string $dest, int $permission=0755) |
Static Protected Member Functions | |
| static | getLinesByLine ($filename, $reverse, $maxLines, $lineCallback) |
File system utilities Ubiquity\utils\base$UFileSystem This class is part of Ubiquity.
Definition at line 16 of file UFileSystem.php.
|
static |
Cleans a file path by removing double backslashes or slashes and using DIRECTORY_SEPARATOR.
| string | $path |
Definition at line 102 of file UFileSystem.php.
|
static |
Cleans a directory path by removing double backslashes or slashes and using DIRECTORY_SEPARATOR.
| string | $path |
Definition at line 79 of file UFileSystem.php.
|
static |
Deletes all files from a folder (not in subfolders)
| string | $folder | |
| string | $mask |
Definition at line 39 of file UFileSystem.php.
|
static |
Deletes a file, in safe mode.
| string | $filename |
Definition at line 53 of file UFileSystem.php.
|
static |
Deletes recursivly a folder and its content.
| string | $dir |
Definition at line 169 of file UFileSystem.php.
|
static |
Returns the directory base on ROOT, corresponding to a namespace.
| string | $ns |
Definition at line 159 of file UFileSystem.php.
|
static |
Returns the lines of a file in an array.
| string | $filename | |
| boolean | $reverse | |
| null | int | $maxLines | |
| callback | $lineCallback |
Definition at line 186 of file UFileSystem.php.
|
staticprotected |
Definition at line 238 of file UFileSystem.php.
|
static |
Find recursively pathnames matching a pattern.
| string | $pattern | |
| integer | $flags |
Definition at line 25 of file UFileSystem.php.
|
static |
Gets file modification time.
| string | $filename |
Definition at line 136 of file UFileSystem.php.
|
static |
Reads entire file into a string in safe mode.
| string | $filename |
Definition at line 146 of file UFileSystem.php.
|
static |
Returns relative path between two sources.
| $from | ||
| $to | ||
| string | $separator |
Definition at line 225 of file UFileSystem.php.
|
static |
Tests the existance and eventually creates a directory.
| string | $dir | |
| int | $mode | |
| boolean | $recursive |
Definition at line 67 of file UFileSystem.php.
|
static |
Try to require a file, in safe mode.
| string | $file |
Definition at line 122 of file UFileSystem.php.