ILIAS
eassessment Revision 61809
|
File System Explorer GUI class. More...
Public Member Functions | |
ilFileSystemGUI ($a_main_directory) | |
setAllowDirectories ($a_val) | |
Set allow directories. | |
getAllowDirectories () | |
Get allow directories. | |
setTableId ($a_val) | |
Set table id. | |
getTableId () | |
Get table id. | |
setTitle ($a_val) | |
Set title. | |
getTitle () | |
Get title. | |
getLastPerformedCommand () | |
Get performed command. | |
& | executeCommand () |
execute command | |
addCommand (&$a_obj, $a_func, $a_name) | |
add command | |
labelFile ($a_file, $a_label) | |
label a file | |
activateLabels ($a_act, $a_label_header) | |
activate file labels | |
& | extCommand ($a_nr) |
call external command | |
listFiles () | |
list files | |
renameFileForm () | |
list files | |
renameFile () | |
rename a file | |
cancelRename () | |
cancel renaming a file | |
createDirectory () | |
create directory | |
uploadFile () | |
upload file | |
confirmDeleteFile () | |
Confirm file deletion. | |
deleteFile () | |
delete object file | |
unzipFile () | |
delete object file | |
downloadFile () | |
delete object file | |
getTabs (&$tabs_gui) | |
get tabs |
Data Fields | |
$ctrl |
Protected Member Functions | |
setPerformedCommand ($command, $pars="") | |
Set performed command. |
File System Explorer GUI class.
-> This class should go to Services/FileSystemStorage
Definition at line 13 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::activateLabels | ( | $a_act, | |
$a_label_header | |||
) |
activate file labels
Definition at line 176 of file class.ilFileSystemGUI.php.
Referenced by ilObjFileBasedLMGUI\executeCommand(), and ilObjMediaObjectGUI\executeCommand().
ilFileSystemGUI::addCommand | ( | & | $a_obj, |
$a_func, | |||
$a_name | |||
) |
add command
Definition at line 153 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::cancelRename | ( | ) |
cancel renaming a file
Definition at line 411 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::confirmDeleteFile | ( | ) |
Confirm file deletion.
Definition at line 508 of file class.ilFileSystemGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendFailure().
ilFileSystemGUI::createDirectory | ( | ) |
create directory
Definition at line 419 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, ilUtil\makeDir(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::deleteFile | ( | ) |
delete object file
Definition at line 538 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $lng, ilUtil\delDir(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::downloadFile | ( | ) |
delete object file
Definition at line 634 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, ilUtil\deliverFile(), exit, and ilUtil\stripSlashes().
& ilFileSystemGUI::executeCommand | ( | ) |
execute command
Definition at line 126 of file class.ilFileSystemGUI.php.
References $cmd, $ret, and extCommand().
& ilFileSystemGUI::extCommand | ( | $a_nr | ) |
call external command
Definition at line 185 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, and ilUtil\stripSlashes().
Referenced by executeCommand().
ilFileSystemGUI::getAllowDirectories | ( | ) |
Get allow directories.
Definition at line 50 of file class.ilFileSystemGUI.php.
Referenced by listFiles(), and unzipFile().
ilFileSystemGUI::getLastPerformedCommand | ( | ) |
ilFileSystemGUI::getTableId | ( | ) |
Get table id.
Definition at line 70 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Definition at line 667 of file class.ilFileSystemGUI.php.
References $ilCtrl.
ilFileSystemGUI::getTitle | ( | ) |
Get title.
Definition at line 90 of file class.ilFileSystemGUI.php.
References $title.
Referenced by listFiles().
ilFileSystemGUI::ilFileSystemGUI | ( | $a_main_directory | ) |
Definition at line 17 of file class.ilFileSystemGUI.php.
References $ilCtrl, $lng, $tpl, and setAllowDirectories().
ilFileSystemGUI::labelFile | ( | $a_file, | |
$a_label | |||
) |
label a file
Definition at line 168 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::listFiles | ( | ) |
list files
Definition at line 228 of file class.ilFileSystemGUI.php.
References $_GET, $file, $files, $ilCtrl, $lng, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), getAllowDirectories(), getTableId(), getTitle(), ilTextInputGUI\setMaxLength(), ilSelectInputGUI\setOptions(), ilFileInputGUI\setSize(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFile | ( | ) |
rename a file
Definition at line 374 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $dir, $lng, ilUtil\renameExecutables(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFileForm | ( | ) |
list files
Definition at line 326 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, and ilUtil\stripSlashes().
ilFileSystemGUI::setAllowDirectories | ( | $a_val | ) |
Set allow directories.
boolean | allow directories |
Definition at line 40 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
|
protected |
Set performed command.
string | command |
array | parameter array |
Definition at line 101 of file class.ilFileSystemGUI.php.
References $_SESSION, and $command.
Referenced by createDirectory(), deleteFile(), renameFile(), and uploadFile().
ilFileSystemGUI::setTableId | ( | $a_val | ) |
Set table id.
string | table id |
Definition at line 60 of file class.ilFileSystemGUI.php.
Referenced by ilObjExerciseGUI\executeCommand(), and ilObjSAHSLearningModuleGUI\executeCommand().
ilFileSystemGUI::setTitle | ( | $a_val | ) |
Set title.
string | title |
Definition at line 80 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::unzipFile | ( | ) |
delete object file
Definition at line 592 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $lng, getAllowDirectories(), ilUtil\renameExecutables(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), and ilUtil\unzip().
ilFileSystemGUI::uploadFile | ( | ) |
upload file
Definition at line 452 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::$ctrl |
Definition at line 15 of file class.ilFileSystemGUI.php.