ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
util class various functions, usage as namespace More...
Public Member Functions | |
removeTrailingPathSeparators ($path) | |
getWebspaceDir ($mode="filesystem") | |
get webspace directory More... | |
getDataDir () | |
get data directory (outside webspace) More... | |
makeDir ($a_dir) | |
creates a new directory and inherits all filesystem permissions of the parent directory You may pass only the name of your new directory or with the entire path or relative path information. More... | |
makeDirParents ($a_dir) | |
Create a new directory and all parent directories. More... | |
delDir ($a_dir) | |
removes a dir and all its content (subdirs and files) recursively More... | |
getDir ($a_dir) | |
get directory More... | |
util class various functions, usage as namespace
Definition at line 37 of file class.ilUpdateUtils.php.
ilUpdateUtils::delDir | ( | $a_dir | ) |
removes a dir and all its content (subdirs and files) recursively
public
string | dir to delete |
Definition at line 184 of file class.ilUpdateUtils.php.
References $file, $files, array, ilUtil\delDir(), and file.
ilUpdateUtils::getDataDir | ( | ) |
get data directory (outside webspace)
Definition at line 74 of file class.ilUpdateUtils.php.
Referenced by ilFileSystemStorage\init().
ilUpdateUtils::getDir | ( | $a_dir | ) |
get directory
Definition at line 219 of file class.ilUpdateUtils.php.
References $files, $size, and array.
ilUpdateUtils::getWebspaceDir | ( | $mode = "filesystem" | ) |
get webspace directory
string | $mode | use "filesystem" for filesystem operations and "output" for output operations, e.g. images |
Definition at line 54 of file class.ilUpdateUtils.php.
References defined.
Referenced by ilFileSystemStorage\init().
ilUpdateUtils::makeDir | ( | $a_dir | ) |
creates a new directory and inherits all filesystem permissions of the parent directory You may pass only the name of your new directory or with the entire path or relative path information.
examples: a_dir = /tmp/test/your_dir a_dir = ../test/your_dir a_dir = your_dir (–> creates your_dir in current directory)
public
string | [path] + directory name |
Definition at line 96 of file class.ilUpdateUtils.php.
References $path.
ilUpdateUtils::makeDirParents | ( | $a_dir | ) |
Create a new directory and all parent directories.
Creates a new directory and inherits all filesystem permissions of the parent directory If the parent directories doesn't exist, they will be created recursively. The directory name NEEDS TO BE an absolute path, because it seems that relative paths are not working with PHP's file_exists function.
string | $a_dir | The directory name to be created public |
Definition at line 128 of file class.ilUpdateUtils.php.
References $key, array, and Monolog\Handler\error_log().
Referenced by ilFileSystemStorage\create().
ilUpdateUtils::removeTrailingPathSeparators | ( | $path | ) |
Definition at line 39 of file class.ilUpdateUtils.php.
References $path.
Referenced by ilFileSystemStorage\create(), ilFSStorageEvent\createDirectory(), and ilFileSystemStorage\init().