ILIAS
Release_4_2_x_branch Revision 61807
|
File System Explorer GUI class. More...
Public Member Functions | |
ilFileSystemGUI ($a_main_directory) | |
setAllowDirectories ($a_val) | |
Set allow directories. | |
getAllowDirectories () | |
Get allow directories. | |
setPostDirPath ($a_val) | |
Set post dir path. | |
getPostDirPath () | |
Get post dir path. | |
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, $a_single=true, $a_allow_dir=false) | |
Add command. | |
clearCommands () | |
Clear commands. | |
labelFile ($a_file, $a_label) | |
label a file | |
activateLabels ($a_act, $a_label_header) | |
activate file labels | |
& | extCommand ($a_nr) |
call external command | |
setAllowDirectoryCreation ($a_val) | |
Set allowed directory creation. | |
getAllowDirectoryCreation () | |
Get allowed directory creation. | |
setAllowFileCreation ($a_val) | |
Set allowed file creation. | |
getAllowFileCreation () | |
Get allowed file creation. | |
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 237 of file class.ilFileSystemGUI.php.
Referenced by ilObjFileBasedLMGUI\executeCommand(), and ilObjMediaObjectGUI\executeCommand().
ilFileSystemGUI::addCommand | ( | & | $a_obj, |
$a_func, | |||
$a_name, | |||
$a_single = true , |
|||
$a_allow_dir = false |
|||
) |
Add command.
Definition at line 204 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::cancelRename | ( | ) |
cancel renaming a file
Definition at line 531 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::clearCommands | ( | ) |
Clear commands.
Definition at line 221 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::confirmDeleteFile | ( | ) |
Confirm file deletion.
Definition at line 628 of file class.ilFileSystemGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendFailure().
ilFileSystemGUI::createDirectory | ( | ) |
create directory
Definition at line 539 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 658 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 754 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $valid, ilUtil\deliverFile(), exit, ilUtil\getDir(), and ilUtil\stripSlashes().
& ilFileSystemGUI::executeCommand | ( | ) |
execute command
Definition at line 177 of file class.ilFileSystemGUI.php.
References $cmd, $ret, and extCommand().
& ilFileSystemGUI::extCommand | ( | $a_nr | ) |
call external command
Definition at line 246 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $files, and ilUtil\stripSlashes().
Referenced by executeCommand().
ilFileSystemGUI::getAllowDirectories | ( | ) |
Get allow directories.
Definition at line 81 of file class.ilFileSystemGUI.php.
Referenced by listFiles(), and unzipFile().
ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Get allowed directory creation.
Definition at line 312 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getAllowFileCreation | ( | ) |
Get allowed file creation.
Definition at line 328 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getLastPerformedCommand | ( | ) |
ilFileSystemGUI::getPostDirPath | ( | ) |
Get post dir path.
Definition at line 101 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getTableId | ( | ) |
Get table id.
Definition at line 121 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Definition at line 799 of file class.ilFileSystemGUI.php.
References $ilCtrl.
ilFileSystemGUI::getTitle | ( | ) |
Get title.
Definition at line 141 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, setAllowDirectories(), setAllowDirectoryCreation(), and setAllowFileCreation().
ilFileSystemGUI::labelFile | ( | $a_file, | |
$a_label | |||
) |
label a file
Definition at line 229 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::listFiles | ( | ) |
list files
Definition at line 336 of file class.ilFileSystemGUI.php.
References $_GET, $file, $files, $ilCtrl, $lng, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), getAllowDirectories(), getAllowDirectoryCreation(), getAllowFileCreation(), getPostDirPath(), getTableId(), getTitle(), ilTextInputGUI\setMaxLength(), ilSelectInputGUI\setOptions(), ilFileInputGUI\setSize(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFile | ( | ) |
rename a file
Definition at line 494 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 438 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $ilCtrl, $lng, ilTextInputGUI\setMaxLength(), and ilUtil\stripSlashes().
ilFileSystemGUI::setAllowDirectories | ( | $a_val | ) |
Set allow directories.
boolean | allow directories |
Definition at line 71 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
ilFileSystemGUI::setAllowDirectoryCreation | ( | $a_val | ) |
Set allowed directory creation.
Definition at line 304 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
ilFileSystemGUI::setAllowFileCreation | ( | $a_val | ) |
Set allowed file creation.
Definition at line 320 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
|
protected |
Set performed command.
string | command |
array | parameter array |
Definition at line 152 of file class.ilFileSystemGUI.php.
References $_SESSION, and $command.
Referenced by createDirectory(), deleteFile(), renameFile(), and uploadFile().
ilFileSystemGUI::setPostDirPath | ( | $a_val | ) |
Set post dir path.
boolean | post dir path |
Definition at line 91 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaPoolGUI\executeCommand().
ilFileSystemGUI::setTableId | ( | $a_val | ) |
Set table id.
string | table id |
Definition at line 111 of file class.ilFileSystemGUI.php.
Referenced by ilObjSAHSLearningModuleGUI\executeCommand(), and ilObjExerciseGUI\executeCommand().
ilFileSystemGUI::setTitle | ( | $a_val | ) |
Set title.
string | title |
Definition at line 131 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::unzipFile | ( | ) |
delete object file
Definition at line 712 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 572 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), if, ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::$ctrl |
Definition at line 15 of file class.ilFileSystemGUI.php.