ILIAS
Release_4_0_x_branch Revision 61816
|
util class various functions, usage as namespace More...
Public Member Functions | |
removeTrailingPathSeparators ($path) | |
getWebspaceDir ($mode="filesystem") | |
get webspace directory | |
getDataDir () | |
get data directory (outside webspace) | |
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. | |
makeDirParents ($a_dir) | |
Create a new directory and all parent directories. | |
delDir ($a_dir) | |
removes a dir and all its content (subdirs and files) recursively | |
getDir ($a_dir) | |
get directory |
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 206 of file class.ilUpdateUtils.php.
References $file, $files, and elseif().
ilUpdateUtils::getDataDir | ( | ) |
get data directory (outside webspace)
Definition at line 81 of file class.ilUpdateUtils.php.
Referenced by ilFileSystemStorage\init().
ilUpdateUtils::getDir | ( | $a_dir | ) |
get directory
Definition at line 247 of file class.ilUpdateUtils.php.
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 55 of file class.ilUpdateUtils.php.
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 103 of file class.ilUpdateUtils.php.
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 137 of file class.ilUpdateUtils.php.
References $dir, $dirs, $key, and elseif().
Referenced by ilFileSystemStorage\create().
ilUpdateUtils::removeTrailingPathSeparators | ( | $path | ) |
Definition at line 40 of file class.ilUpdateUtils.php.
Referenced by ilFileSystemStorage\create(), ilFSStorageEvent\createDirectory(), and ilFileSystemStorage\init().