|
ILIAS
release_8 Revision v8.24
|
File System Helper, to reduce deps. More...
Collaboration diagram for ilFileSystemHelper:Public Member Functions | |
| __construct (ilLanguage $lng, ilSystemStyleMessageStack $message_stack) | |
| move (string $from, string $to) | |
| Used to move a complete directory of a skin. More... | |
| delete (string $file_path) | |
| saveDeleteFile (string $file_path) | |
| Deletes a given file in the container. More... | |
| recursiveRemoveDir (string $dir) | |
| Recursive delete of a folder. More... | |
| removeResourceDirectory (string $skin_dir, string $dir, bool $is_linked) | |
| Deletes a resource directory. More... | |
| createResourceDirectory (string $source, string $target) | |
| Creates a resource directory (sound, images or fonts) by copying from the source (mostly delos) More... | |
| changeResourceDirectory (string $skin_dir, string $new_dir, string $old_dir, bool $has_references) | |
| Alters the name/path of a resource directory. More... | |
| recursiveCopy (string $src, string $dest) | |
| Recursive copy of a folder. More... | |
| getMessageStack () | |
| setMessageStack (ilSystemStyleMessageStack $message_stack) | |
Protected Attributes | |
| ilSystemStyleMessageStack | $message_stack |
| Used to stack messages to be displayed to the user (mostly reports for failed actions) More... | |
| ilLanguage | $lng |
File System Helper, to reduce deps.
to ilUtil or wrap them properly. Should be replaced by src/Filesystem as soon as templates/default is accessible by src/Filesystem
Definition at line 25 of file class.ilFileSystemHelper.php.
| ilFileSystemHelper::__construct | ( | ilLanguage | $lng, |
| ilSystemStyleMessageStack | $message_stack | ||
| ) |
Definition at line 33 of file class.ilFileSystemHelper.php.
References $lng, ILIAS\Repository\lng(), and setMessageStack().
Here is the call graph for this function:| ilFileSystemHelper::changeResourceDirectory | ( | string | $skin_dir, |
| string | $new_dir, | ||
| string | $old_dir, | ||
| bool | $has_references | ||
| ) |
Alters the name/path of a resource directory.
| ilSystemStyleException |
Definition at line 138 of file class.ilFileSystemHelper.php.
References getMessageStack(), ILIAS\Repository\lng(), recursiveCopy(), recursiveRemoveDir(), and ilSystemStyleMessage\TYPE_SUCCESS.
Here is the call graph for this function:| ilFileSystemHelper::createResourceDirectory | ( | string | $source, |
| string | $target | ||
| ) |
Creates a resource directory (sound, images or fonts) by copying from the source (mostly delos)
| ilSystemStyleException |
Definition at line 119 of file class.ilFileSystemHelper.php.
References $source, getMessageStack(), ILIAS\Repository\lng(), recursiveCopy(), and ilSystemStyleMessage\TYPE_SUCCESS.
Here is the call graph for this function:| ilFileSystemHelper::delete | ( | string | $file_path | ) |
Definition at line 47 of file class.ilFileSystemHelper.php.
| ilFileSystemHelper::getMessageStack | ( | ) |
Definition at line 225 of file class.ilFileSystemHelper.php.
References $message_stack.
Referenced by changeResourceDirectory(), createResourceDirectory(), removeResourceDirectory(), and saveDeleteFile().
Here is the caller graph for this function:| ilFileSystemHelper::move | ( | string | $from, |
| string | $to | ||
| ) |
Used to move a complete directory of a skin.
Definition at line 42 of file class.ilFileSystemHelper.php.
| ilFileSystemHelper::recursiveCopy | ( | string | $src, |
| string | $dest | ||
| ) |
Recursive copy of a folder.
| ilSystemStyleException |
Definition at line 188 of file class.ilFileSystemHelper.php.
References Vendor\Package\$e, ilSystemStyleException\FILE_CREATION_FAILED, ilSystemStyleException\FILE_OPENING_FAILED, ilSystemStyleException\FOLDER_CREATION_FAILED, and recursiveCopy().
Referenced by changeResourceDirectory(), createResourceDirectory(), and recursiveCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemHelper::recursiveRemoveDir | ( | string | $dir | ) |
Recursive delete of a folder.
Definition at line 71 of file class.ilFileSystemHelper.php.
References recursiveRemoveDir().
Referenced by changeResourceDirectory(), recursiveRemoveDir(), and removeResourceDirectory().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemHelper::removeResourceDirectory | ( | string | $skin_dir, |
| string | $dir, | ||
| bool | $is_linked | ||
| ) |
Deletes a resource directory.
Definition at line 91 of file class.ilFileSystemHelper.php.
References getMessageStack(), ILIAS\Repository\lng(), recursiveRemoveDir(), and ilSystemStyleMessage\TYPE_SUCCESS.
Here is the call graph for this function:| ilFileSystemHelper::saveDeleteFile | ( | string | $file_path | ) |
Deletes a given file in the container.
Definition at line 55 of file class.ilFileSystemHelper.php.
References getMessageStack(), ILIAS\Repository\lng(), and ilSystemStyleMessage\TYPE_SUCCESS.
Here is the call graph for this function:| ilFileSystemHelper::setMessageStack | ( | ilSystemStyleMessageStack | $message_stack | ) |
Definition at line 230 of file class.ilFileSystemHelper.php.
References $message_stack.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 31 of file class.ilFileSystemHelper.php.
Referenced by __construct().
|
protected |
Used to stack messages to be displayed to the user (mostly reports for failed actions)
Definition at line 30 of file class.ilFileSystemHelper.php.
Referenced by getMessageStack(), and setMessageStack().