ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 () | |
list files 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... | |
Data Fields | |
$ctrl | |
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() | |
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 $ilCtrl, $lng, $tpl, array, setAllowDirectories(), setAllowDirectoryCreation(), and setAllowFileCreation().
ilFileSystemGUI::activateLabels | ( | $a_act, | |
$a_label_header | |||
) |
activate file labels
Definition at line 335 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 705 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::clearCommands | ( | ) |
ilFileSystemGUI::confirmDeleteFile | ( | array | $a_files | ) |
Confirm file deletion.
Definition at line 827 of file class.ilFileSystemGUI.php.
References $ilCtrl, $lng, and $tpl.
ilFileSystemGUI::createDirectory | ( | ) |
create directory
Definition at line 713 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, array, ilUtil\makeDir(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::deleteFile | ( | ) |
delete object file
Definition at line 849 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $lng, array, ilUtil\delDir(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::downloadFile | ( | $a_file | ) |
delete object file
Definition at line 994 of file class.ilFileSystemGUI.php.
References $file, ilUtil\deliverFile(), and exit.
ilFileSystemGUI::executeCommand | ( | ) |
execute command
Definition at line 275 of file class.ilFileSystemGUI.php.
References $cmd, $ret, and extCommand().
ilFileSystemGUI::extCommand | ( | $a_nr | ) |
call external command
Definition at line 449 of file class.ilFileSystemGUI.php.
References $_GET, $file, $files, array, getIncomingFiles(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
Referenced by executeCommand().
ilFileSystemGUI::getAllowDirectories | ( | ) |
Get allow directories.
Definition at line 159 of file class.ilFileSystemGUI.php.
Referenced by listFiles(), and unzipFile().
ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Get allowed directory creation.
Definition at line 510 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getAllowedSuffixes | ( | ) |
Get allowed Suffixes.
Definition at line 95 of file class.ilFileSystemGUI.php.
References $allowed_suffixes.
Referenced by isValidSuffix().
ilFileSystemGUI::getAllowFileCreation | ( | ) |
Get allowed file creation.
Definition at line 526 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
|
protected |
Definition at line 379 of file class.ilFileSystemGUI.php.
References array, and ilUtil\getDir().
Referenced by getIncomingFiles().
ilFileSystemGUI::getForbiddenSuffixes | ( | ) |
Get Accepted Suffixes.
Definition at line 115 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
|
protected |
Definition at line 412 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 265 of file class.ilFileSystemGUI.php.
References $_SESSION, and $ret.
ilFileSystemGUI::getPostDirPath | ( | ) |
Get post dir path.
Definition at line 179 of file class.ilFileSystemGUI.php.
Referenced by getIncomingFiles(), and listFiles().
ilFileSystemGUI::getTableId | ( | ) |
Get table id.
Definition at line 199 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getTabs | ( | & | $tabs_gui | ) |
ilFileSystemGUI::getTitle | ( | ) |
Get title.
Definition at line 219 of file class.ilFileSystemGUI.php.
References $title.
Referenced by listFiles().
ilFileSystemGUI::getUseUploadDirectory | ( | ) |
Get use upload directory.
Definition at line 239 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 126 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 327 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::listFiles | ( | ) |
list files
Definition at line 534 of file class.ilFileSystemGUI.php.
References $_GET, $file, $files, $ilCtrl, $lng, $options, $si, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), getAllowDirectories(), getAllowDirectoryCreation(), getAllowFileCreation(), getPostDirPath(), getTableId(), getTitle(), getUseUploadDirectory(), parseCurrentDirectory(), ilTextInputGUI\setMaxLength(), and ilFileInputGUI\setSize().
|
protected |
Definition at line 343 of file class.ilFileSystemGUI.php.
References $_GET, array, and ilUtil\stripSlashes().
Referenced by getIncomingFiles(), and listFiles().
ilFileSystemGUI::renameFile | ( | ) |
rename a file
Definition at line 643 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, array, isValidSuffix(), ilFileUtils\rename(), ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFileForm | ( | $a_file | ) |
list files
Definition at line 603 of file class.ilFileSystemGUI.php.
References $_GET, $file, $ilCtrl, $lng, ilTextInputGUI\setMaxLength(), and ilUtil\stripSlashes().
ilFileSystemGUI::setAllowDirectories | ( | $a_val | ) |
Set allow directories.
boolean | allow directories |
Definition at line 149 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setAllowDirectoryCreation | ( | $a_val | ) |
Set allowed directory creation.
Definition at line 502 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setAllowedSuffixes | ( | $a_suffixes | ) |
Set allowed Suffixes.
array | $a_suffixes | allowed Suffixes |
Definition at line 85 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaObjectGUI\executeCommand().
ilFileSystemGUI::setAllowFileCreation | ( | $a_val | ) |
Set allowed file creation.
Definition at line 518 of file class.ilFileSystemGUI.php.
Referenced by __construct().
ilFileSystemGUI::setForbiddenSuffixes | ( | $a_suffixes | ) |
Set forbidden Suffixes.
array | $a_suffixes | forbidden Suffixes |
Definition at line 105 of file class.ilFileSystemGUI.php.
|
protected |
Set performed command.
string | command |
array | parameter array |
Definition at line 250 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 169 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaPoolGUI\executeCommand().
ilFileSystemGUI::setTableId | ( | $a_val | ) |
Set table id.
string | table id |
Definition at line 189 of file class.ilFileSystemGUI.php.
Referenced by ilExPeerReviewGUI\executeCommand(), and ilExerciseManagementGUI\executeCommand().
ilFileSystemGUI::setTitle | ( | $a_val | ) |
Set title.
string | title |
Definition at line 209 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 229 of file class.ilFileSystemGUI.php.
Referenced by ilObjSAHSLearningModuleGUI\executeCommand().
ilFileSystemGUI::unzipFile | ( | $a_file = null | ) |
delete object file
Definition at line 904 of file class.ilFileSystemGUI.php.
References $_GET, $d, $file, $lng, $path, array, getAllowDirectories(), ilUtil\getDir(), isValidSuffix(), ilFileUtils\recursive_dirscan(), ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), ilUtil\stripSlashes(), and ilUtil\unzip().
ilFileSystemGUI::uploadFile | ( | ) |
upload file
Definition at line 746 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, $url, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), array, ilLinkButton\getInstance(), ilMimeTypeUtil\getMimeType(), isValidSuffix(), ilUtil\moveUploadedFile(), ilUtil\renameExecutables(), 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.
|
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().