|
ILIAS
release_8 Revision v8.24
|
File System Explorer GUI class. More...
Inheritance diagram for ilFileSystemGUI:
Collaboration diagram for ilFileSystemGUI:Public Member Functions | |
| __construct (string $main_absolute_directory) | |
| setAllowedSuffixes (array $a_suffixes) | |
| getAllowedSuffixes () | |
| setForbiddenSuffixes (array $a_suffixes) | |
| getForbiddenSuffixes () | |
| isValidSuffix (string $a_suffix) | |
| setAllowDirectories (bool $a_val) | |
| getAllowDirectories () | |
| setPostDirPath (bool $a_val) | |
| getPostDirPath () | |
| setTableId (string $a_val) | |
| getTableId () | |
| setTitle (string $a_val) | |
| getTitle () | |
| setUseUploadDirectory (bool $a_val) | |
| getUseUploadDirectory () | |
| getLastPerformedCommand () | |
| executeCommand () | |
| addCommand (object $a_obj, string $a_func, string $a_name, bool $a_single=true, bool $a_allow_dir=false) | |
| clearCommands () | |
| labelFile (string $a_file, string $a_label) | |
| activateLabels (bool $a_act, string $a_label_header) | |
| setAllowDirectoryCreation (bool $a_val) | |
| getAllowDirectoryCreation () | |
| setAllowFileCreation (bool $a_val) | |
| Set allowed file creation. More... | |
| getAllowFileCreation () | |
| listFiles (?ilTable2GUI $a_table_gui=null) | |
| getTable (string $a_dir, string $a_subdir) | |
| renameFileForm (string $a_file) | |
| renameFile () | |
| cancelRename () | |
| createDirectory () | |
| uploadFile () | |
| confirmDeleteFile (array $a_files) | |
| deleteFile () | |
| unzipFile (?string $a_file=null) | |
| downloadFile (string $a_file) | |
| getActionCommands () | |
| defineCommands () | |
Data Fields | |
| const | PARAMETER_CDIR = "cdir" |
| const | SESSION_LAST_COMMAND = "fsys_lastcomm" |
| const | PARAMETER_NEWDIR = "newdir" |
| const | PARAMETER_FHSH = "fhsh" |
| const | POST_PARAM_FILE = "file" |
| const | PARAM_RESETOFFSET = "resetoffset" |
| const | PARAM_OLD_NAME = "old_name" |
| const | PARAM_UPFILE = "upfile" |
| const | POST_PARAM_NEW_NAME = "new_name" |
| const | POST_PARAM_NEW_DIR = "new_dir" |
| const | POST_PARAM_UPLOADED_FILE = "uploaded_file" |
Protected Member Functions | |
| setPerformedCommand ($command, array $pars=[]) | |
| parseCurrentDirectory () | |
| getFileList (string $a_dir, ?string $a_subdir=null) | |
| getIncomingFiles () | |
Protected Attributes | |
| ilCtrlInterface | $ctrl |
| bool | $use_upload_directory = false |
| array | $allowed_suffixes = [] |
| array | $forbidden_suffixes = [] |
| ilLanguage | $lng |
| string | $main_absolute_dir |
| bool | $post_dir_path = false |
| ilGlobalTemplateInterface | $tpl |
| array | $file_labels = [] |
| bool | $label_enable = false |
| bool | $allow_directories = true |
| string | $table_id = '' |
| string | $title = '' |
| array | $commands = [] |
| string | $label_header = '' |
| bool | $directory_creation = false |
| bool | $file_creation = false |
| ILIAS HTTP Wrapper WrapperFactory | $wrapper |
| ILIAS Refinery Factory | $refinery |
Private Member Functions | |
| extCommand (int $a_nr) | |
| sanitizeCurrentDirectory () | |
File System Explorer GUI class.
Definition at line 31 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::__construct | ( | string | $main_absolute_directory | ) |
| string | $main_absolute_directory |
Definition at line 68 of file class.ilFileSystemGUI.php.
References $DIC, ILIAS\Repository\ctrl(), defineCommands(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), setAllowDirectories(), setAllowDirectoryCreation(), and setAllowFileCreation().
Here is the call graph for this function:| ilFileSystemGUI::activateLabels | ( | bool | $a_act, |
| string | $a_label_header | ||
| ) |
Definition at line 256 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::addCommand | ( | object | $a_obj, |
| string | $a_func, | ||
| string | $a_name, | ||
| bool | $a_single = true, |
||
| bool | $a_allow_dir = false |
||
| ) |
Definition at line 230 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::cancelRename | ( | ) |
Definition at line 621 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilFileSystemGUI::clearCommands | ( | ) |
Definition at line 246 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::confirmDeleteFile | ( | array | $a_files | ) |
Definition at line 759 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::createDirectory | ( | ) |
Definition at line 626 of file class.ilFileSystemGUI.php.
References $DIC, $lng, ILIAS\Repository\ctrl(), ilFileUtils\makeDir(), ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::defineCommands | ( | ) |
Definition at line 928 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\lng().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::deleteFile | ( | ) |
Reimplemented in ilExAssignmentFileSystemGUI.
Definition at line 779 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ilFileUtils\delDir(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::downloadFile | ( | string | $a_file | ) |
Definition at line 907 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ilFileDelivery\deliverFileLegacy(), and exit.
Here is the call graph for this function:| ilFileSystemGUI::executeCommand | ( | ) |
Definition at line 217 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), and extCommand().
Here is the call graph for this function:
|
private |
Definition at line 379 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilUtil\stripSlashes().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::getActionCommands | ( | ) |
| ilFileSystemGUI::getAllowDirectories | ( | ) |
Definition at line 143 of file class.ilFileSystemGUI.php.
References $allow_directories.
| ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Definition at line 429 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::getAllowedSuffixes | ( | ) |
Definition at line 99 of file class.ilFileSystemGUI.php.
References $allowed_suffixes.
Referenced by isValidSuffix().
Here is the caller graph for this function:| ilFileSystemGUI::getAllowFileCreation | ( | ) |
Definition at line 442 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 309 of file class.ilFileSystemGUI.php.
References Vendor\Package\$e, and ilFileUtils\getDir().
Here is the call graph for this function:| ilFileSystemGUI::getForbiddenSuffixes | ( | ) |
Definition at line 115 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
Here is the caller graph for this function:
|
protected |
Definition at line 343 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery().
Here is the call graph for this function:| ilFileSystemGUI::getLastPerformedCommand | ( | ) |
Definition at line 207 of file class.ilFileSystemGUI.php.
References ilSession\get(), ilSession\has(), and ilSession\set().
Here is the call graph for this function:| ilFileSystemGUI::getPostDirPath | ( | ) |
Definition at line 153 of file class.ilFileSystemGUI.php.
References $post_dir_path.
| ilFileSystemGUI::getTable | ( | string | $a_dir, |
| string | $a_subdir | ||
| ) |
Reimplemented in ilExAssignmentFileSystemGUI.
Definition at line 506 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::getTableId | ( | ) |
Definition at line 163 of file class.ilFileSystemGUI.php.
References $table_id.
| ilFileSystemGUI::getTitle | ( | ) |
Definition at line 173 of file class.ilFileSystemGUI.php.
References $title.
| ilFileSystemGUI::getUseUploadDirectory | ( | ) |
Definition at line 183 of file class.ilFileSystemGUI.php.
References $use_upload_directory.
| ilFileSystemGUI::isValidSuffix | ( | string | $a_suffix | ) |
Definition at line 120 of file class.ilFileSystemGUI.php.
References getAllowedSuffixes(), and getForbiddenSuffixes().
Here is the call graph for this function:| ilFileSystemGUI::labelFile | ( | string | $a_file, |
| string | $a_label | ||
| ) |
Definition at line 251 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::listFiles | ( | ?ilTable2GUI | $a_table_gui = null | ) |
Definition at line 447 of file class.ilFileSystemGUI.php.
References $DIC, $lng, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 265 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::renameFile | ( | ) |
Reimplemented in ilExAssignmentFileSystemGUI.
Definition at line 552 of file class.ilFileSystemGUI.php.
References Vendor\Package\$e, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilFileUtils\rename(), ilFileUtils\renameExecutables(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::renameFileForm | ( | string | $a_file | ) |
Definition at line 522 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
private |
Definition at line 964 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::setAllowDirectories | ( | bool | $a_val | ) |
Definition at line 138 of file class.ilFileSystemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilFileSystemGUI::setAllowDirectoryCreation | ( | bool | $a_val | ) |
Definition at line 424 of file class.ilFileSystemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilFileSystemGUI::setAllowedSuffixes | ( | array | $a_suffixes | ) |
| string[] | $a_suffixes |
Definition at line 91 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setAllowFileCreation | ( | bool | $a_val | ) |
Set allowed file creation.
Definition at line 437 of file class.ilFileSystemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilFileSystemGUI::setForbiddenSuffixes | ( | array | $a_suffixes | ) |
| string[] | $a_suffixes |
Definition at line 107 of file class.ilFileSystemGUI.php.
|
protected |
| array | string | $command | |
| array | $pars |
Definition at line 193 of file class.ilFileSystemGUI.php.
References ilSession\set().
Here is the call graph for this function:| ilFileSystemGUI::setPostDirPath | ( | bool | $a_val | ) |
Definition at line 148 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTableId | ( | string | $a_val | ) |
Definition at line 158 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTitle | ( | string | $a_val | ) |
Definition at line 168 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setUseUploadDirectory | ( | bool | $a_val | ) |
Definition at line 178 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::unzipFile | ( | ?string | $a_file = null | ) |
Definition at line 833 of file class.ilFileSystemGUI.php.
References $d, Vendor\Package\$f, $path, ILIAS\Repository\ctrl(), ilFileUtils\getDir(), ILIAS\Repository\lng(), ilFileUtils\recursive_dirscan(), ILIAS\Repository\refinery(), ilFileUtils\renameExecutables(), and ilFileUtils\unzip().
Here is the call graph for this function:| ilFileSystemGUI::uploadFile | ( | ) |
Reimplemented in ilExAssignmentFileSystemGUI.
Definition at line 657 of file class.ilFileSystemGUI.php.
References $DIC, $lng, $name, $url, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), ILIAS\Repository\ctrl(), ilLinkButton\getInstance(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilFileUtils\renameExecutables(), and ilUtil\stripSlashes().
Here is the call graph for this function:
|
protected |
Definition at line 55 of file class.ilFileSystemGUI.php.
Referenced by getAllowDirectories().
|
protected |
Definition at line 47 of file class.ilFileSystemGUI.php.
Referenced by getAllowedSuffixes().
|
protected |
Definition at line 58 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 45 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 60 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 61 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 53 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 48 of file class.ilFileSystemGUI.php.
Referenced by getForbiddenSuffixes().
|
protected |
Definition at line 54 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 59 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 49 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 50 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 51 of file class.ilFileSystemGUI.php.
Referenced by getPostDirPath().
|
protected |
Definition at line 63 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 56 of file class.ilFileSystemGUI.php.
Referenced by getTableId().
|
protected |
Definition at line 57 of file class.ilFileSystemGUI.php.
Referenced by getTitle().
|
protected |
Definition at line 52 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 46 of file class.ilFileSystemGUI.php.
Referenced by getUseUploadDirectory().
|
protected |
Definition at line 62 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAM_OLD_NAME = "old_name" |
Definition at line 40 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAM_RESETOFFSET = "resetoffset" |
Definition at line 39 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAM_UPFILE = "upfile" |
Definition at line 41 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_CDIR = "cdir" |
Definition at line 34 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_FHSH = "fhsh" |
Definition at line 37 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_NEWDIR = "newdir" |
Definition at line 36 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_FILE = "file" |
Definition at line 38 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_NEW_DIR = "new_dir" |
Definition at line 43 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_NEW_NAME = "new_name" |
Definition at line 42 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_UPLOADED_FILE = "uploaded_file" |
Definition at line 44 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::SESSION_LAST_COMMAND = "fsys_lastcomm" |
Definition at line 35 of file class.ilFileSystemGUI.php.