| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
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" | 
| const | CMD_UNZIP_FILE = "unzipFile" | 
Protected Member Functions | |
| setPerformedCommand ($command, array $pars=[]) | |
| parseCurrentDirectory () | |
| getFileList (string $a_dir, ?string $a_subdir=null) | |
| getIncomingFiles () | |
Protected Attributes | |
| ILIAS Filesystem Util Archive 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 | 
| ILIAS HTTP Wrapper WrapperFactory | $wrapper | 
| ILIAS Refinery Factory | $refinery | 
Private Member Functions | |
| extCommand (int $a_nr) | |
| sanitizeCurrentDirectory () | |
Private Attributes | |
| ILIAS UI Factory | $ui_factory | 
| ILIAS UI Renderer | $ui_renderer | 
File System Explorer GUI class.
Definition at line 32 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::__construct | ( | string | $main_absolute_directory | ) | 
| string | $main_absolute_directory | 
Definition at line 73 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 264 of file class.ilFileSystemGUI.php.
Referenced by ilObjFileBasedLMGUI\executeCommand().
 Here is the caller graph for this function:| ilFileSystemGUI::addCommand | ( | object | $a_obj, | 
| string | $a_func, | ||
| string | $a_name, | ||
| bool | $a_single = true,  | 
        ||
| bool | $a_allow_dir = false  | 
        ||
| ) | 
Definition at line 238 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::cancelRename | ( | ) | 
Definition at line 629 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl().
 Here is the call graph for this function:| ilFileSystemGUI::clearCommands | ( | ) | 
Definition at line 254 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::confirmDeleteFile | ( | array | $a_files | ) | 
Definition at line 770 of file class.ilFileSystemGUI.php.
References $DIC, ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
 Here is the call graph for this function:| ilFileSystemGUI::createDirectory | ( | ) | 
Definition at line 634 of file class.ilFileSystemGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ilFileUtils\makeDir(), ILIAS\Repository\refinery(), sanitizeCurrentDirectory(), setPerformedCommand(), ilUtil\stripSlashes(), and ilLanguage\txt().
 Here is the call graph for this function:| ilFileSystemGUI::defineCommands | ( | ) | 
Definition at line 941 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 | ( | ) | 
Definition at line 790 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ilFileUtils\delDir(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), sanitizeCurrentDirectory(), setPerformedCommand(), and ilUtil\stripSlashes().
 Here is the call graph for this function:| ilFileSystemGUI::downloadFile | ( | string | $a_file | ) | 
Definition at line 920 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 225 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), and extCommand().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 387 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), getIncomingFiles(), ILIAS\Repository\lng(), sanitizeCurrentDirectory(), and ilUtil\stripSlashes().
Referenced by executeCommand().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::getActionCommands | ( | ) | 
Definition at line 936 of file class.ilFileSystemGUI.php.
References $commands.
Referenced by ilExAssignmentFileSystemGUI\getTable().
 Here is the caller graph for this function:| ilFileSystemGUI::getAllowDirectories | ( | ) | 
Definition at line 151 of file class.ilFileSystemGUI.php.
References $allow_directories.
Referenced by listFiles(), and unzipFile().
 Here is the caller graph for this function:| ilFileSystemGUI::getAllowDirectoryCreation | ( | ) | 
Definition at line 437 of file class.ilFileSystemGUI.php.
References $directory_creation.
Referenced by listFiles().
 Here is the caller graph for this function:| ilFileSystemGUI::getAllowedSuffixes | ( | ) | 
Definition at line 107 of file class.ilFileSystemGUI.php.
References $allowed_suffixes.
Referenced by isValidSuffix().
 Here is the caller graph for this function:| ilFileSystemGUI::getAllowFileCreation | ( | ) | 
Definition at line 450 of file class.ilFileSystemGUI.php.
References $file_creation.
Referenced by listFiles().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 317 of file class.ilFileSystemGUI.php.
References Vendor\Package\$e, and ilFileUtils\getDir().
Referenced by getIncomingFiles().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::getForbiddenSuffixes | ( | ) | 
Definition at line 123 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 351 of file class.ilFileSystemGUI.php.
References getFileList(), getPostDirPath(), parseCurrentDirectory(), and ILIAS\Repository\refinery().
Referenced by extCommand().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::getLastPerformedCommand | ( | ) | 
Definition at line 215 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 161 of file class.ilFileSystemGUI.php.
References $post_dir_path.
Referenced by getIncomingFiles(), ilExAssignmentFileSystemGUI\getTable(), and getTable().
 Here is the caller graph for this function:| ilFileSystemGUI::getTable | ( | string | $a_dir, | 
| string | $a_subdir | ||
| ) | 
Definition at line 514 of file class.ilFileSystemGUI.php.
References getPostDirPath(), and getTableId().
Referenced by listFiles().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::getTableId | ( | ) | 
Definition at line 171 of file class.ilFileSystemGUI.php.
References $table_id.
Referenced by getTable().
 Here is the caller graph for this function:| ilFileSystemGUI::getTitle | ( | ) | 
Definition at line 181 of file class.ilFileSystemGUI.php.
References $title.
Referenced by listFiles().
 Here is the caller graph for this function:| ilFileSystemGUI::getUseUploadDirectory | ( | ) | 
Definition at line 191 of file class.ilFileSystemGUI.php.
References $use_upload_directory.
Referenced by listFiles().
 Here is the caller graph for this function:| ilFileSystemGUI::isValidSuffix | ( | string | $a_suffix | ) | 
Definition at line 128 of file class.ilFileSystemGUI.php.
References getAllowedSuffixes(), and getForbiddenSuffixes().
Referenced by renameFile(), unzipFile(), and uploadFile().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::labelFile | ( | string | $a_file, | 
| string | $a_label | ||
| ) | 
Definition at line 259 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::listFiles | ( | ?ilTable2GUI | $a_table_gui = null | ) | 
Definition at line 455 of file class.ilFileSystemGUI.php.
References $DIC, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), ILIAS\Repository\ctrl(), getAllowDirectories(), getAllowDirectoryCreation(), getAllowFileCreation(), getTable(), getTitle(), getUseUploadDirectory(), ILIAS\Repository\lng(), parseCurrentDirectory(), ILIAS\Repository\refinery(), ilSelectInputGUI\setOptions(), ilFileInputGUI\setSize(), and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 273 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Referenced by getIncomingFiles(), and listFiles().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::renameFile | ( | ) | 
Definition at line 560 of file class.ilFileSystemGUI.php.
References Vendor\Package\$e, ILIAS\Repository\ctrl(), isValidSuffix(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilFileUtils\rename(), ilFileUtils\renameExecutables(), sanitizeCurrentDirectory(), setPerformedCommand(), and ilUtil\stripSlashes().
 Here is the call graph for this function:| ilFileSystemGUI::renameFileForm | ( | string | $a_file | ) | 
Definition at line 530 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and sanitizeCurrentDirectory().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 977 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Referenced by createDirectory(), deleteFile(), extCommand(), renameFile(), renameFileForm(), unzipFile(), and uploadFile().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::setAllowDirectories | ( | bool | $a_val | ) | 
Definition at line 146 of file class.ilFileSystemGUI.php.
Referenced by __construct().
 Here is the caller graph for this function:| ilFileSystemGUI::setAllowDirectoryCreation | ( | bool | $a_val | ) | 
Definition at line 432 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 99 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaObjectGUI\returnToContextObject().
 Here is the caller graph for this function:| ilFileSystemGUI::setAllowFileCreation | ( | bool | $a_val | ) | 
Set allowed file creation.
Definition at line 445 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 115 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
| array | string | $command | |
| array | $pars | 
Definition at line 201 of file class.ilFileSystemGUI.php.
References ilSession\set().
Referenced by createDirectory(), deleteFile(), renameFile(), unzipFile(), and uploadFile().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilFileSystemGUI::setPostDirPath | ( | bool | $a_val | ) | 
Definition at line 156 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaPoolGUI\executeCommand().
 Here is the caller graph for this function:| ilFileSystemGUI::setTableId | ( | string | $a_val | ) | 
Definition at line 166 of file class.ilFileSystemGUI.php.
Referenced by ilExPeerReviewGUI\executeCommand(), and ilExerciseManagementGUI\executeCommand().
 Here is the caller graph for this function:| ilFileSystemGUI::setTitle | ( | string | $a_val | ) | 
Definition at line 176 of file class.ilFileSystemGUI.php.
Referenced by ilExAssignmentEditorGUI\executeCommand().
 Here is the caller graph for this function:| ilFileSystemGUI::setUseUploadDirectory | ( | bool | $a_val | ) | 
Definition at line 186 of file class.ilFileSystemGUI.php.
Referenced by ilObjSAHSLearningModuleGUI\executeCommand().
 Here is the caller graph for this function:| ilFileSystemGUI::unzipFile | ( | ?string | $a_file = null | ) | 
Definition at line 844 of file class.ilFileSystemGUI.php.
References Vendor\Package\$d, Vendor\Package\$f, $path, ILIAS\Repository\ctrl(), getAllowDirectories(), ilFileUtils\getDir(), isValidSuffix(), ILIAS\Repository\lng(), ilFileUtils\recursive_dirscan(), ILIAS\Repository\refinery(), ilFileUtils\renameExecutables(), sanitizeCurrentDirectory(), and setPerformedCommand().
 Here is the call graph for this function:| ilFileSystemGUI::uploadFile | ( | ) | 
Definition at line 665 of file class.ilFileSystemGUI.php.
References $DIC, $unzip, $url, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), ILIAS\Repository\ctrl(), isValidSuffix(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilFileUtils\renameExecutables(), sanitizeCurrentDirectory(), setPerformedCommand(), ilUtil\stripSlashes(), and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 60 of file class.ilFileSystemGUI.php.
Referenced by getAllowDirectories().
      
  | 
  protected | 
Definition at line 52 of file class.ilFileSystemGUI.php.
Referenced by getAllowedSuffixes().
      
  | 
  protected | 
Definition at line 63 of file class.ilFileSystemGUI.php.
Referenced by getActionCommands().
      
  | 
  protected | 
Definition at line 50 of file class.ilFileSystemGUI.php.
Referenced by ilExAssignmentFileSystemGUI\saveFilesOrder().
      
  | 
  protected | 
Definition at line 65 of file class.ilFileSystemGUI.php.
Referenced by getAllowDirectoryCreation().
      
  | 
  protected | 
Definition at line 66 of file class.ilFileSystemGUI.php.
Referenced by getAllowFileCreation().
      
  | 
  protected | 
Definition at line 58 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
Definition at line 53 of file class.ilFileSystemGUI.php.
Referenced by getForbiddenSuffixes().
      
  | 
  protected | 
Definition at line 59 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
Definition at line 64 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
Definition at line 54 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
Definition at line 55 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
Definition at line 56 of file class.ilFileSystemGUI.php.
Referenced by getPostDirPath().
      
  | 
  protected | 
Definition at line 68 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
Definition at line 61 of file class.ilFileSystemGUI.php.
Referenced by getTableId().
      
  | 
  protected | 
Definition at line 62 of file class.ilFileSystemGUI.php.
Referenced by getTitle().
      
  | 
  protected | 
Definition at line 57 of file class.ilFileSystemGUI.php.
      
  | 
  private | 
Definition at line 47 of file class.ilFileSystemGUI.php.
      
  | 
  private | 
Definition at line 48 of file class.ilFileSystemGUI.php.
      
  | 
  protected | 
Definition at line 49 of file class.ilFileSystemGUI.php.
Referenced by uploadFile().
      
  | 
  protected | 
Definition at line 51 of file class.ilFileSystemGUI.php.
Referenced by getUseUploadDirectory().
      
  | 
  protected | 
Definition at line 67 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::CMD_UNZIP_FILE = "unzipFile" | 
Definition at line 46 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemTableGUI\fillRow().
| const ilFileSystemGUI::PARAM_OLD_NAME = "old_name" | 
Definition at line 41 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAM_RESETOFFSET = "resetoffset" | 
Definition at line 40 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAM_UPFILE = "upfile" | 
Definition at line 42 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_CDIR = "cdir" | 
Definition at line 35 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_FHSH = "fhsh" | 
Definition at line 38 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::PARAMETER_NEWDIR = "newdir" | 
Definition at line 37 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_FILE = "file" | 
Definition at line 39 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_NEW_DIR = "new_dir" | 
Definition at line 44 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_NEW_NAME = "new_name" | 
Definition at line 43 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::POST_PARAM_UPLOADED_FILE = "uploaded_file" | 
Definition at line 45 of file class.ilFileSystemGUI.php.
| const ilFileSystemGUI::SESSION_LAST_COMMAND = "fsys_lastcomm" | 
Definition at line 36 of file class.ilFileSystemGUI.php.