ILIAS
Release_4_4_x_branch Revision 61816
|
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.
Definition at line 12 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::activateLabels | ( | $a_act, | |
$a_label_header | |||
) |
activate file labels
Definition at line 236 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 203 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::cancelRename | ( | ) |
cancel renaming a file
Definition at line 528 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::clearCommands | ( | ) |
Clear commands.
Definition at line 220 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::confirmDeleteFile | ( | ) |
Confirm file deletion.
Definition at line 625 of file class.ilFileSystemGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendFailure().
ilFileSystemGUI::createDirectory | ( | ) |
create directory
Definition at line 536 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 655 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 751 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 176 of file class.ilFileSystemGUI.php.
References $cmd, $ret, and extCommand().
& ilFileSystemGUI::extCommand | ( | $a_nr | ) |
call external command
Definition at line 245 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, and ilUtil\stripSlashes().
Referenced by executeCommand().
ilFileSystemGUI::getAllowDirectories | ( | ) |
Get allow directories.
Definition at line 80 of file class.ilFileSystemGUI.php.
Referenced by listFiles(), and unzipFile().
ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Get allowed directory creation.
Definition at line 311 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getAllowFileCreation | ( | ) |
Get allowed file creation.
Definition at line 327 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getLastPerformedCommand | ( | ) |
ilFileSystemGUI::getPostDirPath | ( | ) |
Get post dir path.
Definition at line 100 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getTableId | ( | ) |
Get table id.
Definition at line 120 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Definition at line 796 of file class.ilFileSystemGUI.php.
References $ilCtrl.
ilFileSystemGUI::getTitle | ( | ) |
Get title.
Definition at line 140 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
ilFileSystemGUI::ilFileSystemGUI | ( | $a_main_directory | ) |
Definition at line 16 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 228 of file class.ilFileSystemGUI.php.
ilFileSystemGUI::listFiles | ( | ) |
list files
Definition at line 335 of file class.ilFileSystemGUI.php.
References $_GET, $file, $ilCtrl, $lng, $options, $si, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), getAllowDirectories(), getAllowDirectoryCreation(), getAllowFileCreation(), getPostDirPath(), getTableId(), getTitle(), ilTextInputGUI\setMaxLength(), ilFileInputGUI\setSize(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFile | ( | ) |
rename a file
Definition at line 491 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, ilUtil\renameExecutables(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
ilFileSystemGUI::renameFileForm | ( | ) |
list files
Definition at line 435 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 70 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
ilFileSystemGUI::setAllowDirectoryCreation | ( | $a_val | ) |
Set allowed directory creation.
Definition at line 303 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
ilFileSystemGUI::setAllowFileCreation | ( | $a_val | ) |
Set allowed file creation.
Definition at line 319 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
|
protected |
Set performed command.
string | command |
array | parameter array |
Definition at line 151 of file class.ilFileSystemGUI.php.
References $_SESSION.
Referenced by createDirectory(), deleteFile(), renameFile(), and uploadFile().
ilFileSystemGUI::setPostDirPath | ( | $a_val | ) |
Set post dir path.
boolean | post dir path |
Definition at line 90 of file class.ilFileSystemGUI.php.
Referenced by ilObjMediaPoolGUI\executeCommand().
ilFileSystemGUI::setTableId | ( | $a_val | ) |
Set table id.
string | table id |
Definition at line 110 of file class.ilFileSystemGUI.php.
Referenced by ilObjSAHSLearningModuleGUI\executeCommand(), and ilObjExerciseGUI\executeCommand().
ilFileSystemGUI::setTitle | ( | $a_val | ) |
Set title.
string | title |
Definition at line 130 of file class.ilFileSystemGUI.php.
Referenced by ilObjExerciseGUI\executeCommand().
ilFileSystemGUI::unzipFile | ( | ) |
delete object file
Definition at line 709 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 569 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 14 of file class.ilFileSystemGUI.php.