ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
|
File System Explorer GUI class. More...
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 33 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::__construct | ( | string | $main_absolute_directory | ) |
string | $main_absolute_directory |
Definition at line 74 of file class.ilFileSystemGUI.php.
References $DIC, ILIAS\Repository\ctrl(), defineCommands(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), setAllowDirectories(), setAllowDirectoryCreation(), and setAllowFileCreation().
ilFileSystemGUI::activateLabels | ( | bool | $a_act, |
string | $a_label_header | ||
) |
Definition at line 262 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 236 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::cancelRename | ( | ) |
Definition at line 622 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl().
ilFileSystemGUI::clearCommands | ( | ) |
Definition at line 252 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::confirmDeleteFile | ( | array | $a_files | ) |
Definition at line 763 of file class.ilFileSystemGUI.php.
References $DIC, ILIAS\UICore\GlobalTemplate\setContent(), and ilLanguage\txt().
ilFileSystemGUI::createDirectory | ( | ) |
Definition at line 627 of file class.ilFileSystemGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ilFileUtils\makeDir(), ILIAS\Repository\refinery(), sanitizeCurrentDirectory(), setPerformedCommand(), ilUtil\stripSlashes(), and ilLanguage\txt().
ilFileSystemGUI::defineCommands | ( | ) |
Definition at line 933 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\lng().
Referenced by __construct().
ilFileSystemGUI::deleteFile | ( | ) |
Definition at line 783 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ilFileUtils\delDir(), ILIAS\Repository\lng(), null, ILIAS\Repository\refinery(), sanitizeCurrentDirectory(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::downloadFile | ( | string | $a_file | ) |
Definition at line 913 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ilFileDelivery\deliverFileLegacy(), and exit.
ilFileSystemGUI::executeCommand | ( | ) |
Definition at line 223 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), and extCommand().
|
private |
Definition at line 380 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), getIncomingFiles(), ILIAS\Repository\lng(), sanitizeCurrentDirectory(), and ilUtil\stripSlashes().
Referenced by executeCommand().
ilFileSystemGUI::getActionCommands | ( | ) |
ilFileSystemGUI::getAllowDirectories | ( | ) |
Definition at line 149 of file class.ilFileSystemGUI.php.
References $allow_directories.
Referenced by listFiles(), and unzipFile().
ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Definition at line 430 of file class.ilFileSystemGUI.php.
References $directory_creation.
Referenced by listFiles().
ilFileSystemGUI::getAllowedSuffixes | ( | ) |
Definition at line 108 of file class.ilFileSystemGUI.php.
References $allowed_suffixes.
Referenced by isValidSuffix().
ilFileSystemGUI::getAllowFileCreation | ( | ) |
Definition at line 443 of file class.ilFileSystemGUI.php.
References $file_creation.
Referenced by listFiles().
|
protected |
Definition at line 309 of file class.ilFileSystemGUI.php.
References Vendor\Package\$e, and ilFileUtils\getDir().
Referenced by getIncomingFiles().
ilFileSystemGUI::getForbiddenSuffixes | ( | ) |
Definition at line 124 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
|
protected |
Definition at line 344 of file class.ilFileSystemGUI.php.
References getFileList(), getPostDirPath(), parseCurrentDirectory(), and ILIAS\Repository\refinery().
Referenced by extCommand().
ilFileSystemGUI::getLastPerformedCommand | ( | ) |
Definition at line 213 of file class.ilFileSystemGUI.php.
References ilSession\get(), ilSession\has(), null, and ilSession\set().
ilFileSystemGUI::getPostDirPath | ( | ) |
Definition at line 159 of file class.ilFileSystemGUI.php.
References $post_dir_path.
Referenced by getIncomingFiles(), and getTable().
ilFileSystemGUI::getTable | ( | string | $a_dir, |
string | $a_subdir | ||
) |
Definition at line 507 of file class.ilFileSystemGUI.php.
References getPostDirPath(), and getTableId().
Referenced by listFiles().
ilFileSystemGUI::getTableId | ( | ) |
Definition at line 169 of file class.ilFileSystemGUI.php.
References $table_id.
Referenced by getTable().
ilFileSystemGUI::getTitle | ( | ) |
Definition at line 179 of file class.ilFileSystemGUI.php.
References $title.
Referenced by listFiles().
ilFileSystemGUI::getUseUploadDirectory | ( | ) |
Definition at line 189 of file class.ilFileSystemGUI.php.
References $use_upload_directory.
Referenced by listFiles().
ilFileSystemGUI::isValidSuffix | ( | string | $a_suffix | ) |
Definition at line 129 of file class.ilFileSystemGUI.php.
References getAllowedSuffixes(), and getForbiddenSuffixes().
Referenced by renameFile(), unzipFile(), and uploadFile().
ilFileSystemGUI::labelFile | ( | string | $a_file, |
string | $a_label | ||
) |
Definition at line 257 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::listFiles | ( | ?ilTable2GUI | $a_table_gui = null | ) |
Definition at line 448 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().
|
protected |
Definition at line 271 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Referenced by getIncomingFiles(), and listFiles().
ilFileSystemGUI::renameFile | ( | ) |
Definition at line 553 of file class.ilFileSystemGUI.php.
References Vendor\Package\$e, ILIAS\Repository\ctrl(), isValidSuffix(), ILIAS\Repository\lng(), null, ILIAS\Repository\refinery(), ilFileUtils\rename(), ilFileUtils\renameExecutables(), sanitizeCurrentDirectory(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFileForm | ( | string | $a_file | ) |
Definition at line 523 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and sanitizeCurrentDirectory().
|
private |
Definition at line 969 of file class.ilFileSystemGUI.php.
References ILIAS\Repository\refinery(), and ilUtil\stripSlashes().
Referenced by createDirectory(), deleteFile(), extCommand(), renameFile(), renameFileForm(), unzipFile(), and uploadFile().
ilFileSystemGUI::setAllowDirectories | ( | bool | $a_val | ) |
Definition at line 144 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setAllowDirectoryCreation | ( | bool | $a_val | ) |
Definition at line 425 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setAllowedSuffixes | ( | array | $a_suffixes | ) |
string[] | $a_suffixes |
Definition at line 100 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::setAllowFileCreation | ( | bool | $a_val | ) |
Set allowed file creation.
Definition at line 438 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setForbiddenSuffixes | ( | array | $a_suffixes | ) |
string[] | $a_suffixes |
Definition at line 116 of file class.ilFileSystemGUI.php.
|
protected |
array | string | $command | |
array | $pars |
Definition at line 199 of file class.ilFileSystemGUI.php.
References ilSession\set().
Referenced by createDirectory(), deleteFile(), renameFile(), unzipFile(), and uploadFile().
ilFileSystemGUI::setPostDirPath | ( | bool | $a_val | ) |
Definition at line 154 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::setTableId | ( | string | $a_val | ) |
Definition at line 164 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::setTitle | ( | string | $a_val | ) |
Definition at line 174 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::setUseUploadDirectory | ( | bool | $a_val | ) |
Definition at line 184 of file class.ilFileSystemGUI.php.
Referenced by ilObjSAHSLearningModuleGUI\executeCommand().
ilFileSystemGUI::unzipFile | ( | ?string | $a_file = null | ) |
Definition at line 837 of file class.ilFileSystemGUI.php.
References Vendor\Package\$f, $path, ILIAS\Repository\ctrl(), getAllowDirectories(), ilFileUtils\getDir(), isValidSuffix(), ILIAS\Repository\lng(), null, ilFileUtils\recursive_dirscan(), ILIAS\Repository\refinery(), ilFileUtils\renameExecutables(), sanitizeCurrentDirectory(), and setPerformedCommand().
ilFileSystemGUI::uploadFile | ( | ) |
Definition at line 658 of file class.ilFileSystemGUI.php.
References $DIC, $unzip, $url, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), ILIAS\Repository\ctrl(), isValidSuffix(), ILIAS\Repository\lng(), null, ILIAS\Repository\refinery(), ilFileUtils\renameExecutables(), sanitizeCurrentDirectory(), setPerformedCommand(), ilUtil\stripSlashes(), and ilLanguage\txt().
|
protected |
Definition at line 61 of file class.ilFileSystemGUI.php.
Referenced by getAllowDirectories().
|
protected |
Definition at line 53 of file class.ilFileSystemGUI.php.
Referenced by getAllowedSuffixes().
|
protected |
Definition at line 64 of file class.ilFileSystemGUI.php.
Referenced by getActionCommands().
|
protected |
Definition at line 51 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 66 of file class.ilFileSystemGUI.php.
Referenced by getAllowDirectoryCreation().
|
protected |
Definition at line 67 of file class.ilFileSystemGUI.php.
Referenced by getAllowFileCreation().
|
protected |
Definition at line 59 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 54 of file class.ilFileSystemGUI.php.
Referenced by getForbiddenSuffixes().
|
protected |
Definition at line 60 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 65 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.
|
protected |
Definition at line 57 of file class.ilFileSystemGUI.php.
Referenced by getPostDirPath().
Definition at line 69 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 62 of file class.ilFileSystemGUI.php.
Referenced by getTableId().
|
protected |
Definition at line 63 of file class.ilFileSystemGUI.php.
Referenced by getTitle().
|
protected |
Definition at line 58 of file class.ilFileSystemGUI.php.
|
private |
Definition at line 48 of file class.ilFileSystemGUI.php.
|
private |
Definition at line 49 of file class.ilFileSystemGUI.php.
|
protected |
Definition at line 50 of file class.ilFileSystemGUI.php.
Referenced by uploadFile().
|
protected |
Definition at line 52 of file class.ilFileSystemGUI.php.
Referenced by getUseUploadDirectory().
|
protected |
Definition at line 68 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::CMD_UNZIP_FILE = "unzipFile" |
Definition at line 47 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemTableGUI\fillRow().
const ilFileSystemGUI::PARAM_OLD_NAME = "old_name" |
Definition at line 42 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::PARAM_RESETOFFSET = "resetoffset" |
Definition at line 41 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::PARAM_UPFILE = "upfile" |
Definition at line 43 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::PARAMETER_CDIR = "cdir" |
Definition at line 36 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::PARAMETER_FHSH = "fhsh" |
Definition at line 39 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::PARAMETER_NEWDIR = "newdir" |
Definition at line 38 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::POST_PARAM_FILE = "file" |
Definition at line 40 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::POST_PARAM_NEW_DIR = "new_dir" |
Definition at line 45 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::POST_PARAM_NEW_NAME = "new_name" |
Definition at line 44 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::POST_PARAM_UPLOADED_FILE = "uploaded_file" |
Definition at line 46 of file class.ilFileSystemGUI.php.
const ilFileSystemGUI::SESSION_LAST_COMMAND = "fsys_lastcomm" |
Definition at line 37 of file class.ilFileSystemGUI.php.