|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
File System Explorer GUI class. More...
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" |
| const | CMD_UNZIP_FILE = "unzipFile" |
Protected Member Functions | |
| setPerformedCommand ($command, array $pars=[]) | |
| parseCurrentDirectory () | |
| getFileList (string $a_dir, ?string $a_subdir=null) | |
| getIncomingFiles () | |
Protected Attributes | |
| LegacyArchives | $unzip |
| 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 |
| WrapperFactory | $wrapper |
| ILIAS Refinery Factory | $refinery |
Private Member Functions | |
| extCommand (int $a_nr) | |
| sanitizeCurrentDirectory () | |
Private Attributes | |
| Factory | $ui_factory |
| Renderer | $ui_renderer |
File System Explorer GUI class.
Definition at line 34 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::__construct | ( | string | $main_absolute_directory | ) |
| string | $main_absolute_directory |
Definition at line 75 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 263 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 237 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::cancelRename | ( | ) |
Definition at line 623 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilFileSystemGUI::clearCommands | ( | ) |
Definition at line 253 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::confirmDeleteFile | ( | array | $a_files | ) |
Definition at line 764 of file class.ilFileSystemGUI.php.
References $DIC, $lng, and ILIAS\UICore\GlobalTemplate\setContent().
Here is the call graph for this function:| ilFileSystemGUI::createDirectory | ( | ) |
Definition at line 628 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 934 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\lng(), and true.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::deleteFile | ( | ) |
Definition at line 784 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 914 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 224 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), and extCommand().
Here is the call graph for this function:
|
private |
Definition at line 381 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 150 of file class.ilFileSystemGUI.php.
References $allow_directories.
| ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Definition at line 431 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::getAllowedSuffixes | ( | ) |
Definition at line 109 of file class.ilFileSystemGUI.php.
References $allowed_suffixes.
Referenced by isValidSuffix().
Here is the caller graph for this function:| ilFileSystemGUI::getAllowFileCreation | ( | ) |
Definition at line 444 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 310 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 125 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
Here is the caller graph for this function:
|
protected |
Definition at line 345 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery().
Here is the call graph for this function:| ilFileSystemGUI::getLastPerformedCommand | ( | ) |
Definition at line 214 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 160 of file class.ilFileSystemGUI.php.
References $post_dir_path.
| ilFileSystemGUI::getTable | ( | string | $a_dir, |
| string | $a_subdir | ||
| ) |
Definition at line 508 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::getTableId | ( | ) |
Definition at line 170 of file class.ilFileSystemGUI.php.
References $table_id.
| ilFileSystemGUI::getTitle | ( | ) |
Definition at line 180 of file class.ilFileSystemGUI.php.
References $title.
| ilFileSystemGUI::getUseUploadDirectory | ( | ) |
Definition at line 190 of file class.ilFileSystemGUI.php.
References $use_upload_directory.
| ilFileSystemGUI::isValidSuffix | ( | string | $a_suffix | ) |
Definition at line 130 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 258 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::listFiles | ( | ?ilTable2GUI | $a_table_gui = null | ) |
Definition at line 449 of file class.ilFileSystemGUI.php.
References $DIC, $lng, ILIAS\UI\Implementation\Component\Input\Field\$options, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), ILIAS\Repository\ctrl(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 272 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::renameFile | ( | ) |
Definition at line 554 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 524 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 970 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 145 of file class.ilFileSystemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilFileSystemGUI::setAllowDirectoryCreation | ( | bool | $a_val | ) |
Definition at line 426 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 101 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setAllowFileCreation | ( | bool | $a_val | ) |
Set allowed file creation.
Definition at line 439 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 117 of file class.ilFileSystemGUI.php.
|
protected |
| array | string | $command | |
| array | $pars |
Definition at line 200 of file class.ilFileSystemGUI.php.
References ilSession\set().
Here is the call graph for this function:| ilFileSystemGUI::setPostDirPath | ( | bool | $a_val | ) |
Definition at line 155 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTableId | ( | string | $a_val | ) |
Definition at line 165 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTitle | ( | string | $a_val | ) |
Definition at line 175 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setUseUploadDirectory | ( | bool | $a_val | ) |
Definition at line 185 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::unzipFile | ( | ?string | $a_file = null | ) |
Definition at line 838 of file class.ilFileSystemGUI.php.
References Vendor\Package\$f, $path, ILIAS\Repository\ctrl(), ilFileUtils\getDir(), ILIAS\Repository\lng(), ilFileUtils\recursive_dirscan(), ILIAS\Repository\refinery(), and ilFileUtils\renameExecutables().
Here is the call graph for this function:| ilFileSystemGUI::uploadFile | ( | ) |
Definition at line 659 of file class.ilFileSystemGUI.php.
References $DIC, $lng, $url, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilFileUtils\renameExecutables(), and ilUtil\stripSlashes().
Here is the call graph for this function:
|
protected |
Definition at line 62 of file class.ilFileSystemGUI.php.
Referenced by getAllowDirectories().
|
protected |
Definition at line 54 of file class.ilFileSystemGUI.php.
Referenced by getAllowedSuffixes().
|
protected |
Definition at line 65 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 52 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 67 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 68 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 60 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 55 of file class.ilFileSystemGUI.php.
Referenced by getForbiddenSuffixes().
|
protected |
Definition at line 61 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 66 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 56 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 57 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 58 of file class.ilFileSystemGUI.php.
Referenced by getPostDirPath().
Definition at line 70 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 63 of file class.ilFileSystemGUI.php.
Referenced by getTableId().
|
protected |
Definition at line 64 of file class.ilFileSystemGUI.php.
Referenced by getTitle().
|
protected |
Definition at line 59 of file class.ilFileSystemGUI.php.
|
private |
Definition at line 49 of file class.ilFileSystemGUI.php.
|
private |
Definition at line 50 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 51 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 53 of file class.ilFileSystemGUI.php.
Referenced by getUseUploadDirectory().
|
protected |
Definition at line 69 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::CMD_UNZIP_FILE = "unzipFile" |
Definition at line 48 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemTableGUI\fillRow().
| const ilFileSystemGUI::PARAM_OLD_NAME = "old_name" |
Definition at line 43 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAM_RESETOFFSET = "resetoffset" |
Definition at line 42 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAM_UPFILE = "upfile" |
Definition at line 44 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_CDIR = "cdir" |
Definition at line 37 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_FHSH = "fhsh" |
Definition at line 40 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_NEWDIR = "newdir" |
Definition at line 39 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_FILE = "file" |
Definition at line 41 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_NEW_DIR = "new_dir" |
Definition at line 46 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_NEW_NAME = "new_name" |
Definition at line 45 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_UPLOADED_FILE = "uploaded_file" |
Definition at line 47 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::SESSION_LAST_COMMAND = "fsys_lastcomm" |
Definition at line 38 of file class.ilFileSystemGUI.php.