|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Filesystem tools not provided by default; can recursively create, copy and delete folders. More...
Inheritance diagram for FSTools:
Collaboration diagram for FSTools:Public Member Functions | |
| mkdirr ($folder) | |
| Recursively creates a directory. More... | |
| copyr ($source, $dest) | |
| Copy a file, or recursively copy a folder and its contents; modified so that copied files, if PHP, have includes removed. More... | |
| copyable ($file) | |
| Overloadable function that tests a filename for copyability. More... | |
| rmdirr ($dirname) | |
| Delete a file, or a folder and its contents. More... | |
| globr ($dir, $pattern, $flags=NULL) | |
| Recursively globs a directory. More... | |
| __call ($name, $args) | |
| Allows for PHP functions to be called and be stubbed. More... | |
Static Public Member Functions | |
| static | singleton () |
| Returns a global instance of FSTools. More... | |
| static | setSingleton ($singleton) |
| Sets our global singleton to something else; useful for overloading functions. More... | |
Static Private Attributes | |
| static | $singleton |
Filesystem tools not provided by default; can recursively create, copy and delete folders.
Some template methods are provided for extensibility.
Definition at line 10 of file FSTools.php.
| FSTools::__call | ( | $name, | |
| $args | |||
| ) |
Allows for PHP functions to be called and be stubbed.
Definition at line 157 of file FSTools.php.
References $name.
| FSTools::copyable | ( | $file | ) |
Overloadable function that tests a filename for copyability.
By default, everything should be copied; you can restrict things to ignore hidden files, unreadable files, etc. This function applies to copyr().
Reimplemented in MergeLibraryFSTools.
Definition at line 99 of file FSTools.php.
Referenced by copyr().
Here is the caller graph for this function:| FSTools::copyr | ( | $source, | |
| $dest | |||
| ) |
Copy a file, or recursively copy a folder and its contents; modified so that copied files, if PHP, have includes removed.
Definition at line 63 of file FSTools.php.
References $source, copyable(), and copyr().
Referenced by copyr().
Here is the call graph for this function:
Here is the caller graph for this function:| FSTools::globr | ( | $dir, | |
| $pattern, | |||
$flags = NULL |
|||
| ) |
Recursively globs a directory.
Definition at line 139 of file FSTools.php.
References $files, and globr().
Referenced by globr().
Here is the call graph for this function:
Here is the caller graph for this function:| FSTools::mkdirr | ( | $folder | ) |
Recursively creates a directory.
| string | $folder | Name of folder to create |
Definition at line 38 of file FSTools.php.
| FSTools::rmdirr | ( | $dirname | ) |
Delete a file, or a folder and its contents.
Definition at line 108 of file FSTools.php.
References rmdirr().
Referenced by rmdirr().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Sets our global singleton to something else; useful for overloading functions.
Definition at line 28 of file FSTools.php.
References $singleton.
|
static |
Returns a global instance of FSTools.
Definition at line 18 of file FSTools.php.
References $singleton.
Referenced by FSTools_File\__construct().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 13 of file FSTools.php.
Referenced by setSingleton(), and singleton().