ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Filesystem tools not provided by default; can recursively create, copy and delete folders. More...
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.
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().
Definition at line 99 of file FSTools.php.
Referenced by copyr().
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 copyable().
FSTools::globr | ( | $dir, | |
$pattern, | |||
$flags = NULL |
|||
) |
Recursively globs a directory.
Definition at line 139 of file FSTools.php.
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.
|
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().
|
staticprivate |
Definition at line 13 of file FSTools.php.
Referenced by setSingleton(), and singleton().