35 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
38 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
39 $this->lng->loadLanguageModule(
'file');
52 $ilNavigationHistory = $DIC[
'ilNavigationHistory'];
55 $ilTabs = $DIC[
'ilTabs'];
56 $ilAccess = $DIC[
'ilAccess'];
59 $next_class = $this->ctrl->getNextClass($this);
60 $cmd = $this->ctrl->getCmd();
62 if ($this->id_type == self::WORKSPACE_NODE_ID) {
67 if ($this->id_type == self::REPOSITORY_NODE_ID
70 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->node_id);
71 $link =
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"infoScreen");
72 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
75 $ilNavigationHistory->addItem(
85 switch ($next_class) {
86 case "ilinfoscreengui":
90 case 'ilobjectmetadatagui':
92 $ilErr->raiseError($this->lng->txt(
'permission_denied'),
$ilErr->WARNING);
95 $ilTabs->activateTab(
"id_meta");
102 $this->ctrl->forwardCommand($md_gui);
106 case 'ilpermissiongui':
107 $ilTabs->activateTab(
"id_permissions");
109 $ret = $this->ctrl->forwardCommand($perm_gui);
113 $ilTabs->activateTab(
"export");
115 $exp_gui->addFormat(
"xml");
116 $ret = $this->ctrl->forwardCommand($exp_gui);
119 case 'ilobjectcopygui':
121 $cp->setType(
'file');
122 $this->ctrl->forwardCommand($cp);
126 case "ilworkspaceaccessgui":
127 $ilTabs->activateTab(
"id_permissions");
129 $this->ctrl->forwardCommand($wspacc);
132 case "ilcommonactiondispatchergui":
134 $this->ctrl->forwardCommand($gui);
137 case "illearningprogressgui":
138 $ilTabs->activateTab(
'learning_progress');
141 $this->object->getRefId(),
144 $this->ctrl->forwardCommand($new_gui);
145 $this->tabs_gui->setTabActive(
'learning_progress');
147 case strtolower(ilFileVersionsGUI::class):
148 $this->tabs_gui->activateTab(
"id_versions");
151 $this->ilErr->raiseError($this->lng->txt(
"permission_denied"), $this->ilErr->MESSAGE);
158 if ($this->id_type == self::WORKSPACE_NODE_ID) {
165 $ilTabs->clearTargets();
167 return parent::executeCommand();
189 if ($this->id_type == self::WORKSPACE_NODE_ID) {
192 $this->ctrl->redirect($this,
"cancel");
205 if ($this->id_type != self::WORKSPACE_NODE_ID) {
222 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
224 $single_form_gui->setMultipart(
true);
228 $in_title->
setInfo($this->lng->txt(
"if_no_title_then_filename"));
231 $single_form_gui->addItem($in_title);
235 $single_form_gui->addItem($in_descr);
240 $single_form_gui->addItem($in_file);
242 $single_form_gui->addCommandButton(
"save", $this->lng->txt($this->type .
"_add"));
243 $single_form_gui->addCommandButton(
"saveAndMeta", $this->lng->txt(
"file_add_and_metadata"));
244 $single_form_gui->addCommandButton(
"cancel",
$lng->txt(
"cancel"));
246 $single_form_gui->setTableWidth(
"600px");
248 $single_form_gui->setTitle($this->lng->txt($this->type .
"_new"));
249 $single_form_gui->setTitleIcon(
ilUtil::getImagePath(
'icon_file.svg'), $this->lng->txt(
'obj_file'));
251 $this->ctrl->setParameter($this,
"new_type",
"file");
253 $single_form_gui->setFormAction($this->ctrl->getFormAction($this,
"save"));
255 return $single_form_gui;
270 $this->ilErr->raiseError($this->lng->txt(
"permission_denied"), $this->ilErr->MESSAGE);
275 if ($single_form_gui->checkInput()) {
276 $title = $single_form_gui->getInput(
"title");
277 $description = $single_form_gui->getInput(
"description");
278 $upload_file = $single_form_gui->getInput(
"upload_file");
281 $title = $upload_file[
"name"];
286 if ($titleExtension != $fileExtension && strlen($fileExtension) > 0) {
287 $title .=
'.' . $fileExtension;
295 $fileObj->setTitle(
$title);
297 $fileObj->setFileName($upload_file[
"name"]);
301 $upload_file[
"name"],
304 $fileObj->setFileSize($upload_file[
"size"]);
305 $this->object_id = $fileObj->create();
310 $fileObj->createDirectory();
311 if (
$result = $fileObj->getUploadFile($upload_file[
"tmp_name"], $upload_file[
"name"])) {
312 $fileObj->setFileName(
$result->getName());
321 ilUtil::sendSuccess($this->lng->txt(
"file_added"),
true);
323 if ($this->ctrl->getCmd() ==
"saveAndMeta") {
324 $this->ctrl->setParameter($this,
"new_type",
"");
325 $target = $this->ctrl->getLinkTargetByClass(array(
"ilobjectmetadatagui",
"ilmdeditorgui"),
"listSection",
"",
false,
false);
328 $this->ctrl->returnToParent($this);
331 $single_form_gui->setValuesByPost();
332 $this->tpl->setContent($single_form_gui->getHTML());
356 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
358 $zip_form_gui->setMultipart(
true);
363 $in_file->setSuffixes(array(
"zip"));
364 $zip_form_gui->addItem($in_file);
367 $in_str =
new ilCheckboxInputGUI($this->lng->txt(
"take_over_structure"),
"adopt_structure");
368 $in_str->
setInfo($this->lng->txt(
"take_over_structure_info"));
369 $zip_form_gui->addItem($in_str);
371 $zip_form_gui->addCommandButton(
"saveUnzip", $this->lng->txt($this->type .
"_add"));
372 $zip_form_gui->addCommandButton(
"cancel",
$lng->txt(
"cancel"));
374 $zip_form_gui->setTableWidth(
"600px");
376 $zip_form_gui->setTitle($this->lng->txt(
"header_zip"));
377 $zip_form_gui->setTitleIcon(
ilUtil::getImagePath(
'icon_file.svg'), $this->lng->txt(
'obj_file'));
379 $this->ctrl->setParameter($this,
"new_type",
"file");
381 $zip_form_gui->setFormAction($this->ctrl->getFormAction($this,
"saveUnzip"));
383 return $zip_form_gui;
397 if ($zip_form_gui->checkInput()) {
398 $zip_file = $zip_form_gui->getInput(
"zip_file");
399 $adopt_structure = $zip_form_gui->getInput(
"adopt_structure");
401 include_once(
"Services/Utilities/classes/class.ilFileUtils.php");
408 if ($this->id_type != self::WORKSPACE_NODE_ID) {
420 $containerType =
"WorkspaceFolder";
429 $containerType =
"Category";
435 $containerType =
"Folder";
448 $zip_file[
"tmp_name"],
449 ($adopt_structure && $permission),
455 ilUtil::sendSuccess($this->lng->txt(
"file_added"),
true);
461 $this->ctrl->returnToParent($this);
463 $zip_form_gui->setValuesByPost();
464 $this->tpl->setContent($zip_form_gui->getHTML());
467 $this->ilErr->raiseError($this->lng->txt(
"permission_denied"), $this->ilErr->MESSAGE);
480 $ilTabs = $DIC[
'ilTabs'];
483 if (!
$form->checkInput()) {
484 $ilTabs->activateTab(
"settings");
485 $form->setValuesByPost();
486 $this->tpl->setContent(
$form->getHTML());
494 if (strlen(trim(
$title)) == 0) {
499 $this->
object->setTitle(
$title);
500 $this->
object->setDescription(
$form->getInput(
'description'));
501 $this->
object->setRating(
$form->getInput(
'rating'));
503 $this->
update = $this->
object->update();
506 if (!empty(
$data[
"name"])) {
516 $ecs->handleSettingsUpdate();
518 ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"),
true);
519 ilUtil::redirect($this->ctrl->getLinkTarget($this, self::CMD_EDIT,
'',
false,
false));
531 $ilTabs = $DIC[
'ilTabs'];
535 $ilErr->raiseError($this->lng->txt(
"msg_no_perm_write"));
538 $ilTabs->activateTab(
"settings");
543 $val[
'title'] = $this->
object->getTitle();
544 $val[
'description'] = $this->
object->getLongDescription();
545 $val[
'rating'] = $this->
object->hasRating();
546 $form->setValuesByArray($val);
549 include_once
'Modules/File/classes/class.ilECSFileSettings.php';
551 $ecs->addSettingsToForm(
$form,
'file');
553 $this->tpl->setContent(
$form->getHTML());
568 $form->setFormAction($this->ctrl->getFormAction($this,
'update'));
569 $form->setTitle($this->lng->txt(
'file_edit'));
570 $form->addCommandButton(
'update', $this->lng->txt(
'save'));
571 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
574 $title->setValue($this->object->getTitle());
575 $title->setInfo($this->lng->txt(
"if_no_title_then_filename"));
578 if ($mode ===
'create') {
579 $upload_possible =
true;
580 if ($this->id_type == self::WORKSPACE_NODE_ID) {
584 if ($upload_possible) {
587 $this->lng->txt(
'obj_file'),
591 $form->addItem($file);
596 $replace =
new ilRadioOption($this->lng->txt(
'replace_file'), 1);
597 $replace->
setInfo($this->lng->txt(
'replace_file_info'));
598 $group->addOption($replace);
600 $keep =
new ilRadioOption($this->lng->txt(
'file_new_version'), 0);
601 $keep->
setInfo($this->lng->txt(
'file_new_version_info'));
602 $group->addOption($keep);
604 $file->addSubItem($group);
605 } elseif ($mode ==
'create') {
607 $file->
setValue($this->lng->txt(
"personal_workspace_quota_exceeded_warning"));
608 $form->addItem($file);
612 $o->
setValue($this->lng->txt(
'upload_info_desc'));
617 $form->addItem($desc);
619 if ($this->id_type == self::REPOSITORY_NODE_ID) {
620 $this->lng->loadLanguageModule(
'rating');
622 $rate->
setInfo($this->lng->txt(
'rating_activate_rating_info'));
623 $form->addItem($rate);
635 if (ANONYMOUS_USER_ID == $DIC->user()->getId() && isset(
$_GET[
'transaction'])) {
636 $a_hist_entry_id = isset(
$_GET[
"hist_id"]) ?
$_GET[
"hist_id"] : null;
637 $this->
object->sendFile($a_hist_entry_id);
642 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
646 $this->object->getType(),
647 $this->
object->getRefId(),
648 $this->
object->getId(),
649 $DIC->user()->getId()
653 require_once
'Services/Tracking/classes/class.ilLPStatusWrapper.php';
656 $a_hist_entry_id = isset(
$_GET[
"hist_id"]) ?
$_GET[
"hist_id"] : null;
657 $this->
object->sendFile($a_hist_entry_id);
659 $this->ilErr->raiseError($this->lng->txt(
"permission_denied"), $this->ilErr->MESSAGE);
662 $this->ilErr->raiseError($e->getMessage(), $this->ilErr->MESSAGE);
674 $this->ctrl->redirectByClass(ilFileVersionsGUI::class);
685 $this->ctrl->setCmd(
"showSummary");
686 $this->ctrl->setCmdClass(
"ilinfoscreengui");
697 $ilTabs = $DIC[
'ilTabs'];
699 $ilToolbar = $DIC[
'ilToolbar'];
701 $ilTabs->activateTab(
"id_info");
704 $ilErr->raiseError($this->lng->txt(
"msg_no_perm_read"));
707 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
712 include_once
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
714 $button->setCaption(
"file_download");
715 $button->setPrimary(
true);
718 if ($this->id_type == self::REPOSITORY_NODE_ID) {
721 $button->setUrl($this->ctrl->getLinkTarget($this,
"sendfile"));
724 $ilToolbar->addButtonInstance($button);
727 $info->enablePrivateNotes();
734 $info->enableNewsEditing(
false);
737 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
739 if ($enable_internal_rss) {
740 $info->setBlockProperty(
"news",
"settings",
true);
741 $info->setBlockProperty(
"news",
"public_notifications_option",
true);
746 $info->addMetaDataSections($this->object->getId(), 0, $this->
object->getType());
749 $info->addSection($this->lng->txt(
"file_info"));
750 $info->addProperty($this->lng->txt(
"filename"), $this->
object->getFileName());
751 $info->addProperty($this->lng->txt(
"type"), $this->
object->guessFileType());
754 $info->addProperty($this->lng->txt(
"version"), $this->
object->getVersion());
756 if ($this->object->getPageCount() > 0) {
757 $info->addProperty($this->lng->txt(
"page_count"), $this->
object->getPageCount());
761 $uploader = $this->
object->getVersions();
762 $uploader = array_shift($uploader);
763 $uploader = $uploader[
"user_id"];
765 include_once
"Services/User/classes/class.ilUserUtil.php";
769 if ($this->id_type == self::REPOSITORY_NODE_ID && $this->
checkPermissionBool(
"read",
"sendfile")) {
770 $tpl =
new ilTemplate(
"tpl.download_link.html",
true,
true,
"Modules/File");
772 $info->addProperty($this->lng->txt(
"download_link"),
$tpl->get());
775 if ($this->id_type == self::WORKSPACE_NODE_ID) {
780 include_once(
"./Services/Preview/classes/class.ilPreview.php");
781 if (!$this->ctrl->isAsynch()
785 include_once(
"./Services/Preview/classes/class.ilPreviewGUI.php");
789 switch ($this->id_type) {
790 case self::WORKSPACE_NODE_ID:
791 case self::WORKSPACE_OBJECT_ID:
801 $info->addProperty($this->lng->txt(
"preview"),
$preview->getInlineHTML());
807 $this->ctrl->forwardCommand(
$info);
815 $ilTabs = $DIC[
'ilTabs'];
817 $ilHelp = $DIC[
'ilHelp'];
819 $ilHelp->setScreenIdComponent(
"file");
821 $this->ctrl->setParameter($this,
"ref_id", $this->node_id);
826 $lng->txt(self::CMD_VERSIONS),
834 $lng->txt(
"info_short"),
835 $this->ctrl->getLinkTargetByClass(array(
"ilobjfilegui",
"ilinfoscreengui"),
"showSummary")
842 $lng->txt(
"settings"),
843 $this->ctrl->getLinkTarget($this, self::CMD_EDIT)
850 $lng->txt(
'learning_progress'),
851 $this->ctrl->getLinkTargetByClass(array(__CLASS__,
'illearningprogressgui'),
'')
858 $mdtab = $mdgui->getTab();
862 $lng->txt(
"meta_data"),
873 $this->ctrl->getLinkTargetByClass(
"ilexportgui",
"")
882 public static function _goto($a_target, $a_additional = null)
887 $ilAccess = $DIC[
'ilAccess'];
889 if ($a_additional && substr($a_additional, -3) ==
"wsp") {
890 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
891 $_GET[
"wsp_id"] = $a_target;
892 include(
"ilias.php");
897 if ($a_additional && substr($a_additional, -8) ==
"download") {
903 if ($ilAccess->checkAccess(
"visible",
"", $a_target)
904 || $ilAccess->checkAccess(
"read",
"", $a_target)
908 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID)) {
910 $lng->txt(
"msg_no_perm_read_item"),
927 $ilLocator = $DIC[
'ilLocator'];
929 if (is_object($this->
object)) {
930 $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this,
""),
"",
$this->node_id);
942 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
944 $dnd_form_gui->setMultipart(
true);
945 $dnd_form_gui->setHideLabels();
948 include_once(
"Services/Form/classes/class.ilDragDropFileInputGUI.php");
951 $dnd_input->setCommandButtonNames(
"uploadFiles",
"cancel");
952 $dnd_form_gui->addItem($dnd_input);
955 $dnd_form_gui->addCommandButton(
"uploadFiles", $this->lng->txt(
"upload_files"));
956 $dnd_form_gui->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
958 $dnd_form_gui->setTableWidth(
"100%");
960 $dnd_form_gui->setTitle($this->lng->txt(
"upload_files_title"));
961 $dnd_form_gui->setTitleIcon(
ilUtil::getImagePath(
'icon_file.gif'), $this->lng->txt(
'obj_file'));
963 $this->ctrl->setParameter($this,
"new_type",
"file");
964 $dnd_form_gui->setFormAction($this->ctrl->getFormAction($this,
"uploadFiles"));
966 return $dnd_form_gui;
977 include_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
986 $after_creation_callback = (int) $_REQUEST[
"crtcb"];
987 if ($after_creation_callback) {
988 $this->after_creation_callback_objects = array();
989 unset($_REQUEST[
"crtcb"]);
994 if ($dnd_form_gui->checkInput()) {
997 $response->error = $this->lng->txt(
"permission_denied");
1000 $inp = $dnd_form_gui->getInput(
"upload_files");
1001 $this->log->debug(
"ilObjFileGUI::uploadFiles " . print_r(
$_POST,
true));
1002 $this->log->debug(
"ilObjFileGUI::uploadFiles " . print_r($_FILES,
true));
1003 $fileresult = $this->handleFileUpload($inp);
1009 $response->error = $this->lng->txt(
'general_upload_error_occured');
1012 $dnd_input = $dnd_form_gui->getItemByPostVar(
"upload_files");
1013 $response->error = $dnd_input->getAlert();
1016 if ($after_creation_callback
1017 &&
sizeof($this->after_creation_callback_objects)
1019 foreach ($this->after_creation_callback_objects as $new_file_obj) {
1022 unset($this->after_creation_callback_objects);
1026 header(
'Vary: Accept');
1027 header(
'Content-type: text/plain');
1029 if ($DIC->upload()->hasBeenProcessed()) {
1030 foreach ($DIC->upload()->getResults() as
$result) {
1033 $this->lng->txt(
'file_upload_info_file_with_critical_extension'),
1052 protected function handleFileUpload($file_upload)
1057 if ($DIC->upload()->hasBeenProcessed() !==
true) {
1058 if (PATH_TO_GHOSTSCRIPT !==
"") {
1063 $DIC->upload()->process();
1067 $item = reset($DIC->upload()->getResults());
1071 $file_upload[
'name'] = $item->getName();
1076 $temp_name = $item->getPath();
1095 $adopt_structure = $keep_structure;
1097 include_once(
"Services/Utilities/classes/class.ilFileUtils.php");
1104 if ($this->id_type != self::WORKSPACE_NODE_ID) {
1116 $containerType =
"WorkspaceFolder";
1125 $containerType =
"Category";
1131 $containerType =
"Folder";
1146 ($adopt_structure && $permission),
1155 $response->error = $this->lng->txt(
'general_upload_error_occured');
1161 if ($this->id_type != self::WORKSPACE_NODE_ID) {
1163 if ($parent_ref_id != $this->parent_id) {
1167 foreach ($objects as
$object) {
1168 $this->after_creation_callback_objects[] =
$object;
1176 if (strlen(trim(
$title)) == 0) {
1181 $fileObj->setTitle(
$title);
1184 $fileObj->setFileType($type);
1185 $fileObj->setFileSize($size);
1186 $this->object_id = $fileObj->create();
1190 if (is_array($this->after_creation_callback_objects)) {
1191 $this->after_creation_callback_objects[] = $fileObj;
1195 $fileObj->createDirectory();
1196 $fileObj->raiseUploadError(
true);
1202 if (empty($fileObj->getTitle())) {
1219 $lg = parent::initHeaderAction($a_sub_type, $a_sub_id);
1220 if (is_object(
$lg)) {
1221 if ($this->object->hasRating()) {
1226 array(
"ilcommonactiondispatchergui",
"ilratinggui")
initSingleUploadForm()
FORM: Init single upload form.
static _recordReadEvent( $a_type, $a_ref_id, $obj_id, $usr_id, $isCatchupWriteEvents=true, $a_ext_rc=false, $a_ext_time=false)
Records a read event and catches up with write events.
This class represents an option in a radio group.
infoScreenForward()
show information screen
static _getPermanentDownloadLink($ref_id)
Gets the permanent download link for the file.
setValue($a_value)
Set Value.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
New implementation of ilObjectGUI.
GUI class for the workflow of copying objects.
initCreationForms($a_new_type)
const TITLE_LENGTH
max length of object title
static hasValidExtension($a_filename)
getAccessHandler()
Get access handler.
static _getFileExtension($a_file_name)
Gets the file extension of the specified file name.
static _updateStatus($a_obj_id, $a_usr_id, $a_obj=null, $a_percentage=false, $a_force_raise=false)
Update status.
static _recordWriteEvent($obj_id, $usr_id, $action, $parent_obj_id=null)
Records a write event.
initZipUploadForm($a_mode="create")
FORM: Init zip upload form.
getPermanentLinkWidget($a_append=null, $a_center=false)
fillCloneTemplate($a_tpl_varname, $a_type)
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
static _lookupTitle($a_id)
lookup object title
initPropertiesForm($mode="create")
setInfo($a_info)
Set Info.
static _goto($a_target, $a_additional=null)
static _catchupWriteEvents($obj_id, $usr_id, $timestamp=null)
Catches up with all write events which occured before the specified timestamp.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getMimeType($a_file='', $a_filename='', $a_mime='')
Export User Interface Class.
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress
initImportForm($a_new_type)
Init object import form.
static hasPreview($a_obj_id, $a_type="")
Determines whether the object with the specified reference id has a preview.
if(isset($_POST['submit'])) $form
initHeaderAction($a_sub_type=null, $a_sub_id=null)
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
Constructor.
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
handleAutoRating(ilObject $a_new_obj)
This class represents a text property in a property form.
static processZipFile($a_directory, $a_file, $structure, $ref_id=null, $containerType=null, $tree=null, $access_handler=null)
unzips in given directory and processes uploaded zip for use as single files
static isUploadPossible($a_additional_size=null)
uploadFiles()
Called after a file was uploaded.
saveUnzip()
saveUnzip object
static handleAfterSaveCallback(ilObject $a_obj, $a_callback_ref_id)
After creation callback.
getTargetFrame($a_cmd, $a_target_frame="")
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
putObjectInTree(ilObject $a_obj, $a_parent_node_id=null)
Add object to tree at given position.
static ilTempnam($a_temp_path=null)
Returns a unique and non existing Path for e temporary file or directory.
static _lookupFileSize($a_id)
Lookups the file size of the file in bytes.
This class represents a non editable value in a property form.
setRows($a_rows)
Set Rows.
infoScreen()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually...
GUI class for file objects.
const LP_CONTEXT_REPOSITORY
This class represents a text area property in a property form.
prepareOutput($a_show_subobjects=true)
initMultiUploadForm()
Initializes the upload form for multiple files.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Class ilCountPDFPagesPreProcessors.
static getLogger($a_component_id)
Get component logger.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
static redirect($a_script)
addHeaderAction()
Add header action menu.
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
Class ilObjUserTrackingGUI.
Class FlySystemFileAccessTest.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
static isDragAndDropUploadEnabled()
Gets whether drag and drop file upload is enabled.
update()
updates object entry in object_data
Class to report exception.