|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
File System Explorer GUI class. More...
Collaboration diagram for ilFileSystemGUI:Public Member Functions | |
| ilFileSystemGUI ($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 () | |
| list files More... | |
| renameFile () | |
| rename a file More... | |
| cancelRename () | |
| cancel renaming a file More... | |
| createDirectory () | |
| create directory More... | |
| uploadFile () | |
| upload file More... | |
| confirmDeleteFile () | |
| Confirm file deletion. More... | |
| deleteFile () | |
| delete object file More... | |
| unzipFile () | |
| delete object file More... | |
| downloadFile () | |
| delete object file More... | |
| getTabs (&$tabs_gui) | |
| get tabs More... | |
Data Fields | |
| $ctrl | |
Protected Member Functions | |
| setPerformedCommand ($command, $pars="") | |
| Set performed command. More... | |
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::activateLabels | ( | $a_act, | |
| $a_label_header | |||
| ) |
activate file labels
Definition at line 333 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::addCommand | ( | & | $a_obj, |
| $a_func, | |||
| $a_name, | |||
$a_single = true, |
|||
$a_allow_dir = false |
|||
| ) |
Add command.
Definition at line 300 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::cancelRename | ( | ) |
cancel renaming a file
Definition at line 634 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::clearCommands | ( | ) |
Clear commands.
Definition at line 317 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::confirmDeleteFile | ( | ) |
Confirm file deletion.
Definition at line 755 of file class.ilFileSystemGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, and ilUtil\sendFailure().
Here is the call graph for this function:| ilFileSystemGUI::createDirectory | ( | ) |
create directory
Definition at line 642 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, ilUtil\makeDir(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::deleteFile | ( | ) |
delete object file
Definition at line 785 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $lng, ilUtil\delDir(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::downloadFile | ( | ) |
delete object file
Definition at line 941 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $valid, ilUtil\deliverFile(), exit, ilUtil\getDir(), and ilUtil\stripSlashes().
Here is the call graph for this function:| & ilFileSystemGUI::executeCommand | ( | ) |
execute command
Definition at line 273 of file class.ilFileSystemGUI.php.
References $cmd, $ret, and extCommand().
Here is the call graph for this function:| & ilFileSystemGUI::extCommand | ( | $a_nr | ) |
call external command
Definition at line 342 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, and ilUtil\stripSlashes().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::getAllowDirectories | ( | ) |
Get allow directories.
Definition at line 157 of file class.ilFileSystemGUI.php.
Referenced by listFiles(), and unzipFile().
Here is the caller graph for this function:| ilFileSystemGUI::getAllowDirectoryCreation | ( | ) |
Get allowed directory creation.
Definition at line 410 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getAllowedSuffixes | ( | ) |
Get allowed Suffixes.
Definition at line 93 of file class.ilFileSystemGUI.php.
References $allowed_suffixes.
Referenced by isValidSuffix().
Here is the caller graph for this function:| ilFileSystemGUI::getAllowFileCreation | ( | ) |
Get allowed file creation.
Definition at line 426 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getForbiddenSuffixes | ( | ) |
Get Accepted Suffixes.
Definition at line 113 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
Here is the caller graph for this function:| ilFileSystemGUI::getLastPerformedCommand | ( | ) |
Get performed command.
Definition at line 263 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::getPostDirPath | ( | ) |
Get post dir path.
Definition at line 177 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getTableId | ( | ) |
Get table id.
Definition at line 197 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getTabs | ( | & | $tabs_gui | ) |
get tabs
Definition at line 986 of file class.ilFileSystemGUI.php.
References $ilCtrl.
| ilFileSystemGUI::getTitle | ( | ) |
Get title.
Definition at line 217 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getUseUploadDirectory | ( | ) |
Get use upload directory.
Definition at line 237 of file class.ilFileSystemGUI.php.
References $use_upload_directory.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::ilFileSystemGUI | ( | $a_main_directory | ) |
Definition at line 29 of file class.ilFileSystemGUI.php.
References $ilCtrl, $lng, $tpl, setAllowDirectories(), setAllowDirectoryCreation(), and setAllowFileCreation().
Here is the call graph for this function:| ilFileSystemGUI::isValidSuffix | ( | $a_suffix | ) |
Is suffix valid?
| string | $a_suffix |
Definition at line 124 of file class.ilFileSystemGUI.php.
References getAllowedSuffixes(), and getForbiddenSuffixes().
Referenced by renameFile(), unzipFile(), and uploadFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::labelFile | ( | $a_file, | |
| $a_label | |||
| ) |
label a file
Definition at line 325 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::listFiles | ( | ) |
list files
Definition at line 434 of file class.ilFileSystemGUI.php.
References $_GET, $file, $ilCtrl, $lng, $options, $si, ilUploadFiles\_getUploadDirectory(), ilUploadFiles\_getUploadFiles(), getAllowDirectories(), getAllowDirectoryCreation(), getAllowFileCreation(), getPostDirPath(), getTableId(), getTitle(), getUseUploadDirectory(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::renameFile | ( | ) |
rename a file
Definition at line 589 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, isValidSuffix(), ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::renameFileForm | ( | ) |
list files
Definition at line 533 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, $ilCtrl, $lng, and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::setAllowDirectories | ( | $a_val | ) |
Set allow directories.
| boolean | allow directories |
Definition at line 147 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
Here is the caller graph for this function:| ilFileSystemGUI::setAllowDirectoryCreation | ( | $a_val | ) |
Set allowed directory creation.
Definition at line 402 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
Here is the caller graph for this function:| ilFileSystemGUI::setAllowedSuffixes | ( | $a_suffixes | ) |
Set allowed Suffixes.
| array | $a_suffixes | allowed Suffixes |
Definition at line 83 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setAllowFileCreation | ( | $a_val | ) |
Set allowed file creation.
Definition at line 418 of file class.ilFileSystemGUI.php.
Referenced by ilFileSystemGUI().
Here is the caller graph for this function:| ilFileSystemGUI::setForbiddenSuffixes | ( | $a_suffixes | ) |
Set forbidden Suffixes.
| array | $a_suffixes | forbidden Suffixes |
Definition at line 103 of file class.ilFileSystemGUI.php.
|
protected |
Set performed command.
| string | command |
| array | parameter array |
Definition at line 248 of file class.ilFileSystemGUI.php.
References $_SESSION.
Referenced by createDirectory(), deleteFile(), renameFile(), unzipFile(), and uploadFile().
Here is the caller graph for this function:| ilFileSystemGUI::setPostDirPath | ( | $a_val | ) |
Set post dir path.
| boolean | post dir path |
Definition at line 167 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTableId | ( | $a_val | ) |
Set table id.
| string | table id |
Definition at line 187 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTitle | ( | $a_val | ) |
Set title.
| string | title |
Definition at line 207 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setUseUploadDirectory | ( | $a_val | ) |
Set use upload directory.
| bool | $a_val | use upload directory |
Definition at line 227 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::unzipFile | ( | ) |
delete object file
Definition at line 839 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $d, $file, $lng, $path, getAllowDirectories(), ilUtil\getDir(), isValidSuffix(), ilFileUtils\recursive_dirscan(), ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), ilUtil\stripSlashes(), and ilUtil\unzip().
Here is the call graph for this function:| ilFileSystemGUI::uploadFile | ( | ) |
upload file
Definition at line 675 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), ilLinkButton\getInstance(), ilMimeTypeUtil\getMimeType(), isValidSuffix(), ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
Here is the call graph for this function:
|
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().