|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
File System Explorer GUI class. More...
Collaboration diagram for ilFileSystemGUI: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, setAllowDirectories(), setAllowDirectoryCreation(), and setAllowFileCreation().
Here is the call graph for this function:| ilFileSystemGUI::activateLabels | ( | $a_act, | |
| $a_label_header | |||
| ) |
activate file labels
Definition at line 335 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 302 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::cancelRename | ( | ) |
cancel renaming a file
Definition at line 705 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::clearCommands | ( | ) |
Clear commands.
Definition at line 319 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::confirmDeleteFile | ( | array | $a_files | ) |
Confirm file deletion.
Definition at line 827 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::createDirectory | ( | ) |
create directory
Definition at line 713 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 849 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 | ( | $a_file | ) |
delete object file
Definition at line 994 of file class.ilFileSystemGUI.php.
References $file, ilUtil\deliverFile(), and exit.
Here is the call graph for this function:| ilFileSystemGUI::executeCommand | ( | ) |
execute command
Definition at line 275 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 449 of file class.ilFileSystemGUI.php.
References $_GET, $file, $files, getIncomingFiles(), ilUtil\sendFailure(), 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 159 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 510 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getAllowedSuffixes | ( | ) |
Get allowed Suffixes.
Definition at line 95 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 526 of file class.ilFileSystemGUI.php.
Referenced by listFiles().
Here is the caller graph for this function:
|
protected |
Definition at line 379 of file class.ilFileSystemGUI.php.
References ilUtil\getDir().
Referenced by getIncomingFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::getForbiddenSuffixes | ( | ) |
Get Accepted Suffixes.
Definition at line 115 of file class.ilFileSystemGUI.php.
References $forbidden_suffixes.
Referenced by isValidSuffix().
Here is the caller graph for this function:
|
protected |
Definition at line 412 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $file, getFileList(), getPostDirPath(), and parseCurrentDirectory().
Referenced by extCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::getLastPerformedCommand | ( | ) |
Get performed command.
Definition at line 265 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::getPostDirPath | ( | ) |
Get post dir path.
Definition at line 179 of file class.ilFileSystemGUI.php.
Referenced by getIncomingFiles(), and listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getTableId | ( | ) |
Get table id.
Definition at line 199 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 1013 of file class.ilFileSystemGUI.php.
References $ilCtrl.
| ilFileSystemGUI::getTitle | ( | ) |
Get title.
Definition at line 219 of file class.ilFileSystemGUI.php.
References $title.
Referenced by listFiles().
Here is the caller graph for this function:| ilFileSystemGUI::getUseUploadDirectory | ( | ) |
Get use upload directory.
Definition at line 239 of file class.ilFileSystemGUI.php.
References $use_upload_directory.
Referenced by listFiles().
Here is the caller graph for this function:| 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().
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 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(), and parseCurrentDirectory().
Here is the call graph for this function:
|
protected |
Definition at line 343 of file class.ilFileSystemGUI.php.
References $_GET, and ilUtil\stripSlashes().
Referenced by getIncomingFiles(), and listFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemGUI::renameFile | ( | ) |
rename a file
Definition at line 643 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, isValidSuffix(), ilFileUtils\rename(), ilUtil\renameExecutables(), ilUtil\sendFailure(), ilUtil\sendSuccess(), setPerformedCommand(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilFileSystemGUI::renameFileForm | ( | $a_file | ) |
list files
Definition at line 603 of file class.ilFileSystemGUI.php.
References $_GET, $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 149 of file class.ilFileSystemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilFileSystemGUI::setAllowDirectoryCreation | ( | $a_val | ) |
Set allowed directory creation.
Definition at line 502 of file class.ilFileSystemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilFileSystemGUI::setAllowedSuffixes | ( | $a_suffixes | ) |
Set allowed Suffixes.
| array | $a_suffixes | allowed Suffixes |
Definition at line 85 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setAllowFileCreation | ( | $a_val | ) |
Set allowed file creation.
Definition at line 518 of file class.ilFileSystemGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| 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.
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 169 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTableId | ( | $a_val | ) |
Set table id.
| string | table id |
Definition at line 189 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setTitle | ( | $a_val | ) |
Set title.
| string | title |
Definition at line 209 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::setUseUploadDirectory | ( | $a_val | ) |
Set use upload directory.
| bool | $a_val | use upload directory |
Definition at line 229 of file class.ilFileSystemGUI.php.
| ilFileSystemGUI::unzipFile | ( | $a_file = null | ) |
delete object file
Definition at line 904 of file class.ilFileSystemGUI.php.
References $_GET, $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 746 of file class.ilFileSystemGUI.php.
References $_GET, $_POST, $lng, $url, ilUploadFiles\_checkUploadFile(), ilUploadFiles\_copyUploadFile(), ilLinkButton\getInstance(), ilMimeTypeUtil\getMimeType(), isValidSuffix(), ilUtil\moveUploadedFile(), 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().