ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
File System Explorer GUI class. More...
Public Member Functions | |
__construct ($a_main_directory) | |
setAllowedSuffixes ($a_suffixes) | |
Set allowed Suffixes. More... | |
getAllowedSuffixes () | |
Get allowed Suffixes. More... | |
setForbiddenSuffixes ($a_suffixes) | |
Set forbidden Suffixes. More... | |
getForbiddenSuffixes () | |
Get Accepted Suffixes. More... | |
isValidSuffix ($a_suffix) | |
Is suffix valid? More... | |
setAllowDirectories ($a_val) | |
Set allow directories. More... | |
getAllowDirectories () | |
Get allow directories. More... | |
setPostDirPath ($a_val) | |
Set post dir path. More... | |
getPostDirPath () | |
Get post dir path. More... | |
setTableId ($a_val) | |
Set table id. More... | |
getTableId () | |
Get table id. More... | |
setTitle ($a_val) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setUseUploadDirectory ($a_val) | |
Set use upload directory. More... | |
getUseUploadDirectory () | |
Get use upload directory. More... | |
getLastPerformedCommand () | |
Get performed command. More... | |
executeCommand () | |
execute command More... | |
addCommand (&$a_obj, $a_func, $a_name, $a_single=true, $a_allow_dir=false) | |
Add command. More... | |
clearCommands () | |
Clear commands. More... | |
labelFile ($a_file, $a_label) | |
label a file More... | |
activateLabels ($a_act, $a_label_header) | |
activate file labels More... | |
extCommand ($a_nr) | |
call external command More... | |
setAllowDirectoryCreation ($a_val) | |
Set allowed directory creation. More... | |
getAllowDirectoryCreation () | |
Get allowed directory creation. More... | |
setAllowFileCreation ($a_val) | |
Set allowed file creation. More... | |
getAllowFileCreation () | |
Get allowed file creation. More... | |
listFiles ($a_table_gui=null) | |
List files. More... | |
getTable ($a_dir, $a_subdir) | |
Get table. More... | |
renameFileForm ($a_file) | |
list files More... | |
renameFile () | |
rename a file More... | |
cancelRename () | |
cancel renaming a file More... | |
createDirectory () | |
create directory More... | |
uploadFile () | |
Upload file. More... | |
confirmDeleteFile (array $a_files) | |
Confirm file deletion. More... | |
deleteFile () | |
delete object file More... | |
unzipFile ($a_file=null) | |
delete object file More... | |
downloadFile ($a_file) | |
delete object file More... | |
getTabs (&$tabs_gui) | |
get tabs More... | |
getActionCommands () | |
defineCommands () | |
Define commands available. More... | |
Data Fields | |
$ctrl | |
const | CDIR = "cdir" |
Protected Member Functions | |
setPerformedCommand ($command, $pars="") | |
Set performed command. More... | |
parseCurrentDirectory () | |
getFileList ($a_dir, $a_subdir=null) | |
getIncomingFiles () | |
Protected Attributes | |
$use_upload_directory = false | |
$allowed_suffixes = array() | |
$forbidden_suffixes = array() | |
Private Member Functions | |
sanitizeCurrentDirectory () | |
File System Explorer GUI class.
Definition at line 12 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::__construct | ( | $a_main_directory | ) |
Definition at line 28 of file class.ilFileSystemGUI.php.
References $DIC, $ilCtrl, $lng, $tpl, array, defineCommands(), setAllowDirectories(), setAllowDirectoryCreation(), and setAllowFileCreation().
ilFileSystemGUI::activateLabels | ( | $a_act, | |
$a_label_header | |||
) |
activate file labels
Definition at line 308 of file class.ilFileSystemGUI.php.
Referenced by ilObjFileBasedLMGUI\executeCommand().
ilFileSystemGUI::addCommand | ( | & | $a_obj, |
$a_func, | |||
$a_name, | |||
$a_single = true , |
|||
$a_allow_dir = false |
|||
) |
ilFileSystemGUI::cancelRename | ( | ) |
cancel renaming a file
Definition at line 667 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::clearCommands | ( | ) |
ilFileSystemGUI::confirmDeleteFile | ( | array | $a_files | ) |
ilFileSystemGUI::createDirectory | ( | ) |
create directory
Definition at line 675 of file class.ilFileSystemGUI.php.
References $_POST, $DIC, $lng, array, ilUtil\makeDir(), sanitizeCurrentDirectory(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::defineCommands | ( | ) |
Define commands available.
Definition at line 978 of file class.ilFileSystemGUI.php.
References array.
Referenced by __construct().
ilFileSystemGUI::deleteFile | ( | ) |
delete object file
Definition at line 804 of file class.ilFileSystemGUI.php.
References $_POST, $DIC, $file, $lng, array, ilUtil\delDir(), sanitizeCurrentDirectory(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::downloadFile | ( | $a_file | ) |
delete object file
Definition at line 936 of file class.ilFileSystemGUI.php.
References $file, ilUtil\deliverFile(), and exit.
ilFileSystemGUI::executeCommand | ( | ) |
execute command
Definition at line 248 of file class.ilFileSystemGUI.php.
References $ret, and extCommand().
ilFileSystemGUI::extCommand | ( | $a_nr | ) |
call external command
Definition at line 406 of file class.ilFileSystemGUI.php.
References $file, $files, array, getIncomingFiles(), sanitizeCurrentDirectory(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
Referenced by executeCommand().
ilFileSystemGUI::getActionCommands | ( | ) |
Definition at line 970 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::getAllowDirectories | ( | ) |
Get allow directories.
Definition at line 131 of file class.ilFileSystemGUI.php.
Referenced by listFiles(), and unzipFile().
ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Get allowed directory creation.
Definition at line 462 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getAllowedSuffixes | ( | ) |
Get allowed Suffixes.
Definition at line 70 of file class.ilFileSystemGUI.php.
References $allowed_suffixes.
Referenced by isValidSuffix().
ilFileSystemGUI::getAllowFileCreation | ( | ) |
Get allowed file creation.
Definition at line 478 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
|
protected |
Definition at line 345 of file class.ilFileSystemGUI.php.
References array, and ilUtil\getDir().
Referenced by getIncomingFiles().
ilFileSystemGUI::getForbiddenSuffixes | ( | ) |
Get Accepted Suffixes.
Definition at line 90 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
|
protected |
Definition at line 376 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, array, getFileList(), getPostDirPath(), and parseCurrentDirectory().
Referenced by extCommand().
ilFileSystemGUI::getLastPerformedCommand | ( | ) |
Get performed command.
Definition at line 238 of file class.ilFileSystemGUI.php.
References $_SESSION, and $ret.
ilFileSystemGUI::getPostDirPath | ( | ) |
Get post dir path.
Definition at line 151 of file class.ilFileSystemGUI.php.
Referenced by getIncomingFiles(), ilExAssignmentFileSystemGUI\getTable(), and getTable().
ilFileSystemGUI::getTable | ( | $a_dir, | |
$a_subdir | |||
) |
Get table.
Definition at line 555 of file class.ilFileSystemGUI.php.
References getPostDirPath(), and getTableId().
Referenced by listFiles().
ilFileSystemGUI::getTableId | ( | ) |
Get table id.
Definition at line 171 of file class.ilFileSystemGUI.php.
Referenced by ilExAssignmentFileSystemGUI\getTable(), and getTable().
ilFileSystemGUI::getTabs | ( | & | $tabs_gui | ) |
ilFileSystemGUI::getTitle | ( | ) |
Get title.
Definition at line 191 of file class.ilFileSystemGUI.php.
References $title.
Referenced by listFiles().
ilFileSystemGUI::getUseUploadDirectory | ( | ) |
Get use upload directory.
Definition at line 211 of file class.ilFileSystemGUI.php.
References $use_upload_directory.
Referenced by listFiles().
ilFileSystemGUI::isValidSuffix | ( | $a_suffix | ) |
Is suffix valid?
string | $a_suffix |
Definition at line 101 of file class.ilFileSystemGUI.php.
References getAllowedSuffixes(), and getForbiddenSuffixes().
Referenced by renameFile(), unzipFile(), and uploadFile().
ilFileSystemGUI::labelFile | ( | $a_file, | |
$a_label | |||
) |
label a file
Definition at line 300 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::listFiles | ( | $a_table_gui = null | ) |
List files.
array | $a_class_table_gui | if we are here from a child class |
Definition at line 489 of file class.ilFileSystemGUI.php.
References $_GET, $DIC, $file, $files, $ilCtrl, $lng, $options, $si, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), getAllowDirectories(), getAllowDirectoryCreation(), getAllowFileCreation(), getTable(), getTitle(), getUseUploadDirectory(), parseCurrentDirectory(), ilTextInputGUI\setMaxLength(), and ilFileInputGUI\setSize().
|
protected |
Definition at line 316 of file class.ilFileSystemGUI.php.
References $_GET, array, and ilUtil\stripSlashes().
Referenced by getIncomingFiles(), and listFiles().
ilFileSystemGUI::renameFile | ( | ) |
rename a file
Definition at line 614 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $DIC, $lng, array, isValidSuffix(), ilFileUtils\rename(), ilUtil\renameExecutables(), sanitizeCurrentDirectory(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFileForm | ( | $a_file | ) |
list files
Definition at line 575 of file class.ilFileSystemGUI.php.
References $_GET, $DIC, $file, $form, $ilCtrl, $lng, sanitizeCurrentDirectory(), ilTextInputGUI\setMaxLength(), and ilUtil\stripSlashes().
|
private |
Definition at line 1017 of file class.ilFileSystemGUI.php.
References $DIC, and ilUtil\stripSlashes().
Referenced by createDirectory(), deleteFile(), extCommand(), renameFile(), renameFileForm(), unzipFile(), and uploadFile().
ilFileSystemGUI::setAllowDirectories | ( | $a_val | ) |
Set allow directories.
boolean | allow directories |
Definition at line 121 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setAllowDirectoryCreation | ( | $a_val | ) |
Set allowed directory creation.
Definition at line 454 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setAllowedSuffixes | ( | $a_suffixes | ) |
Set allowed Suffixes.
array | $a_suffixes | allowed Suffixes |
Definition at line 60 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaObjectGUI\executeCommand().
ilFileSystemGUI::setAllowFileCreation | ( | $a_val | ) |
Set allowed file creation.
Definition at line 470 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setForbiddenSuffixes | ( | $a_suffixes | ) |
Set forbidden Suffixes.
array | $a_suffixes | forbidden Suffixes |
Definition at line 80 of file class.ilFileSystemGUI.php.
|
protected |
Set performed command.
string | command |
array | parameter array |
Definition at line 222 of file class.ilFileSystemGUI.php.
References $_SESSION, and array.
Referenced by createDirectory(), deleteFile(), renameFile(), unzipFile(), and uploadFile().
ilFileSystemGUI::setPostDirPath | ( | $a_val | ) |
Set post dir path.
boolean | post dir path |
Definition at line 141 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaPoolGUI\executeCommand().
ilFileSystemGUI::setTableId | ( | $a_val | ) |
Set table id.
string | table id |
Definition at line 161 of file class.ilFileSystemGUI.php.
Referenced by ilExPeerReviewGUI\executeCommand(), and ilExerciseManagementGUI\executeCommand().
ilFileSystemGUI::setTitle | ( | $a_val | ) |
Set title.
string | title |
Definition at line 181 of file class.ilFileSystemGUI.php.
Referenced by ilExAssignmentEditorGUI\executeCommand().
ilFileSystemGUI::setUseUploadDirectory | ( | $a_val | ) |
Set use upload directory.
bool | $a_val | use upload directory |
Definition at line 201 of file class.ilFileSystemGUI.php.
Referenced by ilObjSAHSLearningModuleGUI\executeCommand().
ilFileSystemGUI::unzipFile | ( | $a_file = null | ) |
delete object file
Definition at line 856 of file class.ilFileSystemGUI.php.
References $_GET, $d, $DIC, $file, $lng, $path, array, getAllowDirectories(), ilUtil\getDir(), isValidSuffix(), ilFileUtils\recursive_dirscan(), ilUtil\renameExecutables(), sanitizeCurrentDirectory(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\unzip().
ilFileSystemGUI::uploadFile | ( | ) |
Upload file.
Definition at line 706 of file class.ilFileSystemGUI.php.
References $_POST, $DIC, $lng, $name, $url, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), array, ilLinkButton\getInstance(), ilMimeTypeUtil\getMimeType(), isValidSuffix(), ilUtil\renameExecutables(), sanitizeCurrentDirectory(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
|
protected |
Definition at line 21 of file class.ilFileSystemGUI.php.
Referenced by getAllowedSuffixes().
ilFileSystemGUI::$ctrl |
Definition at line 14 of file class.ilFileSystemGUI.php.
Referenced by ilExAssignmentFileSystemGUI\saveFilesOrder().
|
protected |
Definition at line 26 of file class.ilFileSystemGUI.php.
Referenced by getForbiddenSuffixes().
|
protected |
Definition at line 16 of file class.ilFileSystemGUI.php.
Referenced by getUseUploadDirectory().
const ilFileSystemGUI::CDIR = "cdir" |
Definition at line 17 of file class.ilFileSystemGUI.php.