ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjFileBasedLMGUI Class Reference

User Interface class for file based learning modules (HTML) More...

+ Inheritance diagram for ilObjFileBasedLMGUI:
+ Collaboration diagram for ilObjFileBasedLMGUI:

Public Member Functions

 __construct ( $a_data, int $a_id=0, bool $a_call_by_reference=true, bool $a_prepare_output=true)
 
 executeCommand ()
 
 cancelCreationObject ()
 
 properties ()
 
 initSettingsForm ()
 
 getSettingsFormValues ()
 
 toFilesystem ()
 
 saveProperties ()
 
 editObject ()
 
 edit ()
 
 cancel ()
 
 update ()
 
 setStartFile (string $a_file)
 
 getTemplate ()
 
 showLearningModule ()
 
 infoScreen ()
 this one is called from the info button in the repository More...
 
 showInfoScreen ()
 
 createFromDirectory (string $a_dir)
 
 exportHTML ()
 
 redirectAfterCreation ()
 
 learningProgress ()
 
 redrawHeaderAction ()
 
- Public Member Functions inherited from ilObjectGUI
 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 if true, a creation screen is displayed the current [ref_id] don't belong to the current class! The mode is determined in ilRepositoryGUI More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static _goto (string $a_target)
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Data Fields

bool $output_prepared
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Protected Member Functions

 initCreationForms (string $new_type)
 
 afterSave (ilObject $new_object)
 
 setTabs ()
 
 getTabs ()
 
 addLocatorItems ()
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 fillCloneTemplate (?string $tpl_name, string $type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 showCustomIconsEditing ( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true)
 show edit section of custom icons for container More...
 

Protected Attributes

StandardGUIRequest $lm_request
 
ilPropertyFormGUI $form
 
ilTabsGUI $tabs
 
ilHelpGUI $help
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjFileBasedLMGUI::__construct (   $a_data,
int  $a_id = 0,
bool  $a_call_by_reference = true,
bool  $a_prepare_output = true 
)

Definition at line 36 of file class.ilObjFileBasedLMGUI.php.

References $DIC, ilObjectGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\locator(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

41  {
42  global $DIC;
43 
44  $this->lng = $DIC->language();
45  $this->user = $DIC->user();
46  $this->locator = $DIC["ilLocator"];
47  $this->tabs = $DIC->tabs();
48  $this->tree = $DIC->repositoryTree();
49  $this->tpl = $DIC["tpl"];
50  $this->access = $DIC->access();
51  $this->toolbar = $DIC->toolbar();
52  $this->help = $DIC["ilHelp"];
53  $lng = $DIC->language();
54  $ilCtrl = $DIC->ctrl();
55 
56  $this->ctrl = $ilCtrl;
57  $this->ctrl->saveParameter($this, array("ref_id"));
58 
59  $this->lm_request = $DIC->htmlLearningModule()
60  ->internal()
61  ->gui()
62  ->standardRequest();
63 
64  $this->type = "htlm";
65  $lng->loadLanguageModule("content");
66  $lng->loadLanguageModule("obj");
67 
68  parent::__construct($a_data, $a_id, $a_call_by_reference, false);
69  $this->output_prepared = $a_prepare_output;
70  }
loadLanguageModule(string $a_module)
Load language module.
global $DIC
Definition: feed.php:28
ilLanguage $lng
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjFileBasedLMGUI::_goto ( string  $a_target)
static

Definition at line 607 of file class.ilObjFileBasedLMGUI.php.

References $DIC, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryNode(), ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ROOT_FOLDER_ID, and ilLanguage\txt().

607  : void
608  {
609  global $DIC;
610  $main_tpl = $DIC->ui()->mainTemplate();
611 
612  $lng = $DIC->language();
613  $ilAccess = $DIC->access();
614 
615  if ($ilAccess->checkAccess("read", "", $a_target) ||
616  $ilAccess->checkAccess("visible", "", $a_target)) {
617  ilObjectGUI::_gotoRepositoryNode($a_target, "infoScreen");
618  } elseif ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
619  $main_tpl->setOnScreenMessage('failure', sprintf(
620  $lng->txt("msg_no_perm_read_item"),
622  ), true);
624  }
625 
626  throw new ilPermissionException($lng->txt("msg_no_perm_read_lm"));
627  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
const ROOT_FOLDER_ID
Definition: constants.php:32
static _gotoRepositoryNode(int $ref_id, string $cmd="")
static _lookupObjId(int $ref_id)
global $DIC
Definition: feed.php:28
ilLanguage $lng
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupTitle(int $obj_id)
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
+ Here is the call graph for this function:

◆ addLocatorItems()

ilObjFileBasedLMGUI::addLocatorItems ( )
protected

Definition at line 629 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\$locator, ilObjectGUI\$requested_ref_id, ilLocatorGUI\addItem(), ILIAS\Repository\ctrl(), and ILIAS\Repository\object().

629  : void
630  {
631  $ilLocator = $this->locator;
632 
633  if (is_object($this->object)) {
634  $ilLocator->addItem(
635  $this->object->getTitle(),
636  $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"),
637  "",
639  );
640  }
641  }
addItem(string $a_title, string $a_link, string $a_frame="", int $a_ref_id=0, ?string $type=null)
ilLocatorGUI $locator
+ Here is the call graph for this function:

◆ afterImport()

ilObjFileBasedLMGUI::afterImport ( ilObject  $new_object)
protected

Definition at line 653 of file class.ilObjFileBasedLMGUI.php.

References ILIAS\Repository\ctrl(), ilObject\getRefId(), and ILIAS\Repository\lng().

653  : void
654  {
655  $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
656  $this->tpl->setOnScreenMessage('success', $this->lng->txt("object_added"), true);
657  $this->ctrl->redirect($this, "properties");
658  }
+ Here is the call graph for this function:

◆ afterSave()

ilObjFileBasedLMGUI::afterSave ( ilObject  $new_object)
protected

Definition at line 385 of file class.ilObjFileBasedLMGUI.php.

References $valid, ilObject\getTitle(), ILIAS\Repository\lng(), ilFileUtils\recursive_dirscan(), redirectAfterCreation(), and ilObject\update().

Referenced by createFromDirectory().

385  : void
386  {
387  if (!$new_object->getStartFile()) {
388  // try to set start file automatically
389  $files = array();
390  ilFileUtils::recursive_dirscan($new_object->getDataDirectory(), $files);
391  if (isset($files["file"])) {
392  $zip_file = null;
393  if (stripos($new_object->getTitle(), ".zip") !== false) {
394  $zip_file = strtolower($new_object->getTitle());
395  $suffix = strrpos($zip_file, ".");
396  if ($suffix) {
397  $zip_file = substr($zip_file, 0, $suffix);
398  }
399  }
400  $valid = array("index.htm", "index.html", "start.htm", "start.html");
401  foreach ($files["file"] as $idx => $file) {
402  $chk_file = null;
403  if (stripos($file, ".htm") !== false) {
404  $chk_file = strtolower($file);
405  $suffix = strrpos($chk_file, ".");
406  if ($suffix) {
407  $chk_file = substr($chk_file, 0, $suffix);
408  }
409  }
410  if (in_array($file, $valid) ||
411  ($chk_file && $zip_file && $chk_file == $zip_file)) {
412  $new_object->setStartFile(str_replace($new_object->getDataDirectory() . "/", "", $files["path"][$idx]) . $file);
413  $new_object->update();
414  break;
415  }
416  }
417  }
418  }
419 
420  // always send a message
421  $this->tpl->setOnScreenMessage('success', $this->lng->txt("object_added"), true);
422  $this->object = $new_object;
423  $this->redirectAfterCreation();
424  }
$valid
static recursive_dirscan(string $dir, array &$arr)
Recursively scans a given directory and writes path and filename into referenced array.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cancel()

ilObjFileBasedLMGUI::cancel ( )

Definition at line 380 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\cancelObject().

380  : void
381  {
382  $this->cancelObject();
383  }
cancelObject()
cancel action and go back to previous page
+ Here is the call graph for this function:

◆ cancelCreationObject()

ilObjFileBasedLMGUI::cancelCreationObject ( )
final

Definition at line 222 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\$ctrl, and ilCtrl\redirectByClass().

222  : void
223  {
224  $ilCtrl = $this->ctrl;
225 
226  $ilCtrl->redirectByClass("ilrepositorygui", "frameset");
227  }
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ createFromDirectory()

ilObjFileBasedLMGUI::createFromDirectory ( string  $a_dir)

Definition at line 660 of file class.ilObjFileBasedLMGUI.php.

References $filename, afterSave(), ilObjectGUI\checkPermissionBool(), ILIAS\Repository\lng(), ilObjectGUI\putObjectInTree(), and ilUtil\stripSlashes().

Referenced by importFileObject().

660  : void
661  {
662  if ($a_dir === "" || !$this->checkPermissionBool("create", "", "htlm")) {
663  throw new ilPermissionException($this->lng->txt("no_create_permission"));
664  }
665 
666  // create instance
667  $newObj = new ilObjFileBasedLM();
668  $filename = ilUtil::stripSlashes($_FILES["importfile"]["name"]);
669  $newObj->setTitle($filename);
670  $newObj->setDescription("");
671  $newObj->create();
672  $newObj->populateByDirectoy($a_dir, $filename);
673  $this->putObjectInTree($newObj);
674 
675  $this->afterSave($newObj);
676  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
afterSave(ilObject $new_object)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$filename
Definition: buildRTE.php:78
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
putObjectInTree(ilObject $obj, int $parent_node_id=null)
Add object to tree at given position.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ edit()

ilObjFileBasedLMGUI::edit ( )

Definition at line 374 of file class.ilObjFileBasedLMGUI.php.

References editObject(), and ilObjectGUI\prepareOutput().

374  : void
375  {
376  $this->prepareOutput();
377  $this->editObject();
378  }
prepareOutput(bool $show_sub_objects=true)
+ Here is the call graph for this function:

◆ editObject()

ilObjFileBasedLMGUI::editObject ( )

Definition at line 367 of file class.ilObjFileBasedLMGUI.php.

References ILIAS\Repository\lng().

Referenced by edit().

367  : void
368  {
369  if (!$this->rbac_system->checkAccess("visible,write", $this->object->getRefId())) {
370  throw new ilPermissionException($this->lng->txt("permission_denied"));
371  }
372  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjFileBasedLMGUI::executeCommand ( )

Definition at line 72 of file class.ilObjFileBasedLMGUI.php.

References $ilUser, $tabs, ilObjectGUI\$user, ilFileSystemGUI\activateLabels(), ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ilObjectGUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getTemplate(), ILIAS\Repository\lng(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, ILIAS\Repository\object(), ilObjectGUI\prepareOutput(), ilObjectGUI\setLocator(), setTabs(), and showInfoScreen().

72  : void
73  {
75  $ilTabs = $this->tabs;
76 
77  $next_class = $this->ctrl->getNextClass($this);
78  $cmd = $this->ctrl->getCmd();
79 
80  if (
81  $this->getCreationMode() === true ||
82  strtolower($this->lm_request->getBaseClass()) === "iladministrationgui"
83  ) {
84  $this->prepareOutput();
85  } elseif (!in_array($cmd, array("", "framset")) || $next_class != "") {
86  $this->getTemplate();
87  $this->setLocator();
88  $this->setTabs();
89  }
90 
91  switch ($next_class) {
92  case 'ilobjectmetadatagui':
93  $this->checkPermission("write");
94  $ilTabs->activateTab('id_meta_data');
95  $md_gui = new ilObjectMetaDataGUI($this->object);
96  $this->ctrl->forwardCommand($md_gui);
97  break;
98 
99  case "ilfilesystemgui":
100  $this->checkPermission("write");
101  $ilTabs->activateTab('id_list_files');
102  $fs_gui = new ilFileSystemGUI($this->object->getDataDirectory());
103  $fs_gui->activateLabels(true, $this->lng->txt("cont_purpose"));
104  $fs_gui->setUseUploadDirectory(true);
105  $fs_gui->setTableId("htlmfs" . $this->object->getId());
106  if ($this->object->getStartFile() !== "") {
107  $fs_gui->labelFile(
108  (string) $this->object->getStartFile(),
109  $this->lng->txt("cont_startfile")
110  );
111  }
112  $fs_gui->addCommand($this, "setStartFile", $this->lng->txt("cont_set_start_file"));
113 
114  $this->ctrl->forwardCommand($fs_gui);
115 
116  // try to set start file automatically
117  /* this does not work anymore, see #33348
118  if (!ilObjFileBasedLMAccess::_determineStartUrl($this->object->getId())) {
119  $do_update = false;
120 
121  $pcommand = $fs_gui->getLastPerformedCommand();
122  $last_cmd = $pcommand["cmd"] ?? "";
123  $valid = array("index.htm", "index.html", "start.htm", "start.html");
124  if ($last_cmd === "create_file") {
125  $file = strtolower(basename($pcommand["name"]));
126  if (in_array($file, $valid)) {
127  $this->object->setStartFile($pcommand["name"]);
128  $do_update = $pcommand["name"];
129  }
130  } elseif ($last_cmd === "unzip_file") {
131  $zip_file = strtolower(basename($pcommand["name"]));
132  $suffix = strrpos($zip_file, ".");
133  if ($suffix) {
134  $zip_file = substr($zip_file, 0, $suffix);
135  }
136  foreach ($pcommand["added"] as $file) {
137  $chk_file = null;
138  if (stripos($file, ".htm") !== false) {
139  $chk_file = strtolower(basename($file));
140  $suffix = strrpos($chk_file, ".");
141  if ($suffix) {
142  $chk_file = substr($chk_file, 0, $suffix);
143  }
144  }
145  if (in_array(basename($file), $valid) ||
146  ($zip_file && $chk_file && $chk_file == $zip_file)) {
147  $this->object->setStartFile($file);
148  $do_update = $file;
149  break;
150  }
151  }
152  }
153 
154  if ($do_update) {
155  $this->tpl->setOnScreenMessage('info', sprintf($this->lng->txt("cont_start_file_set_to"), $do_update), true);
156 
157  $this->object->update();
158  $this->ctrl->redirectByClass("ilfilesystemgui", "listFiles");
159  }
160  }*/
161  break;
162 
163  case "ilinfoscreengui":
164  $this->showInfoScreen();
165  break;
166 
167  case "illearningprogressgui":
168  $ilTabs->activateTab('id_learning_progress');
169  $user_id = ($this->lm_request->getUserId() > 0)
170  ? $this->lm_request->getUserId()
171  : $ilUser->getId();
172  $new_gui = new ilLearningProgressGUI(
174  $this->object->getRefId(),
175  $user_id
176  );
177  $this->ctrl->forwardCommand($new_gui);
178  break;
179 
180  case 'ilpermissiongui':
181  $ilTabs->activateTab('id_permissions');
182  $perm_gui = new ilPermissionGUI($this);
183  $ret = $this->ctrl->forwardCommand($perm_gui);
184  break;
185 
186  case "ilexportgui":
187  $ilTabs->activateTab("export");
188  $exp_gui = new ilExportGUI($this);
189  $exp_gui->addFormat("xml");
190  $exp_gui->addFormat("html", "", $this, "exportHTML");
191  $ret = $this->ctrl->forwardCommand($exp_gui);
192  break;
193 
194  case "ilcommonactiondispatchergui":
196  $this->ctrl->forwardCommand($gui);
197  break;
198 
199  default:
200  $cmd = $this->ctrl->getCmd("listFiles");
201  if (
202  $this->getCreationMode() === true ||
203  strtolower($this->lm_request->getBaseClass()) === "iladministrationgui"
204  ) {
205  $cmd .= "Object";
206  }
207  $ret = $this->$cmd();
208  break;
209  }
210 
211  $this->addHeaderAction();
212  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
activateLabels(bool $a_act, string $a_label_header)
prepareOutput(bool $show_sub_objects=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ilUser
Definition: imgupload.php:34
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
File System Explorer GUI class.
addHeaderAction()
Add header action menu.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ exportHTML()

ilObjFileBasedLMGUI::exportHTML ( )

Definition at line 683 of file class.ilObjFileBasedLMGUI.php.

References ilExport\_createExportDirectory(), ilExport\_getExportDirectory(), ilFileUtils\delDir(), IL_INST_ID, ilFileUtils\makeDir(), ILIAS\Repository\object(), ilFileUtils\rCopy(), and ilFileUtils\zip().

683  : void
684  {
686  $this->object->getId(),
687  "html",
688  $this->object->getType()
689  );
690  $export_dir = ilExport::_getExportDirectory(
691  $this->object->getId(),
692  "html",
693  $this->object->getType()
694  );
695 
696  $subdir = $this->object->getType() . "_" . $this->object->getId();
697 
698  $target_dir = $export_dir . "/" . $subdir;
699 
700  ilFileUtils::delDir($target_dir);
701  ilFileUtils::makeDir($target_dir);
702 
703  $source_dir = $this->object->getDataDirectory();
704 
705  ilFileUtils::rCopy($source_dir, $target_dir);
706 
707  // zip it all
708  $date = time();
709  $zip_file = $export_dir . "/" . $date . "__" . IL_INST_ID . "__" .
710  $this->object->getType() . "_" . $this->object->getId() . ".zip";
711  ilFileUtils::zip($target_dir, $zip_file);
712 
713  ilFileUtils::delDir($target_dir);
714  }
const IL_INST_ID
Definition: constants.php:40
static rCopy(string $a_sdir, string $a_tdir, bool $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
static _getExportDirectory(int $a_obj_id, string $a_type="xml", string $a_obj_type="", string $a_entity="")
Get export directory for an repository object.
static _createExportDirectory(int $a_obj_id, string $a_export_type="xml", string $a_obj_type="")
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static zip(string $a_dir, string $a_file, bool $compress_content=false)
zips given directory/file into given zip.file
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
+ Here is the call graph for this function:

◆ getSettingsFormValues()

ilObjFileBasedLMGUI::getSettingsFormValues ( )

Definition at line 306 of file class.ilObjFileBasedLMGUI.php.

References ilObjFileBasedLMAccess\_determineStartUrl(), ILIAS\Repository\form(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

Referenced by properties().

306  : void
307  {
308  $startfile = ilObjFileBasedLMAccess::_determineStartUrl($this->object->getId());
309 
310  $values = array();
311  $values['cobj_online'] = !$this->object->getOfflineStatus();
312  if ($startfile !== "") {
313  $startfile = basename($startfile);
314  } else {
315  $startfile = $this->lng->txt("no_start_file");
316  }
317 
318  $values["startfile"] = $startfile;
319  $values["title"] = $this->object->getTitle();
320  $values["desc"] = $this->object->getLongDescription();
321  $values["cont_show_info_tab"] = $this->object->isInfoEnabled();
322 
323  $this->form->setValuesByArray($values);
324  }
form( $class_path, string $cmd)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTabs()

ilObjFileBasedLMGUI::getTabs ( )
protected

Definition at line 525 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\$access, $help, ilObjectGUI\$lng, $tabs, ilObjFileBasedLMAccess\_determineStartUrl(), ilLearningProgressAccess\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilHelpGUI\setScreenIdComponent(), and ilLanguage\txt().

Referenced by setTabs().

525  : void
526  {
527  $ilAccess = $this->access;
528  $ilTabs = $this->tabs;
529  $lng = $this->lng;
530  $ilHelp = $this->help;
531 
532  $ilHelp->setScreenIdComponent("htlm");
533 
534  if ($ilAccess->checkAccess('write', '', $this->ref_id)) {
535  $ilTabs->addTab(
536  "id_list_files",
537  $lng->txt("cont_list_files"),
538  $this->ctrl->getLinkTargetByClass("ilfilesystemgui", "listFiles")
539  );
540  }
541 
542  if ($ilAccess->checkAccess('visible', '', $this->ref_id) && $this->object->isInfoEnabled()) {
543  $ilTabs->addTab(
544  "id_info",
545  $lng->txt("info_short"),
546  $this->ctrl->getLinkTargetByClass(array("ilobjfilebasedlmgui", "ilinfoscreengui"), "showSummary")
547  );
548  }
549 
550  if ($ilAccess->checkAccess('write', '', $this->ref_id)) {
551  $ilTabs->addTab(
552  "id_settings",
553  $lng->txt("settings"),
554  $this->ctrl->getLinkTarget($this, "properties")
555  );
556  }
557 
558  if (ilLearningProgressAccess::checkAccess($this->object->getRefId())) {
559  $ilTabs->addTab(
560  "id_learning_progress",
561  $lng->txt("learning_progress"),
562  $this->ctrl->getLinkTargetByClass(array('ilobjfilebasedlmgui','illearningprogressgui'), '')
563  );
564  }
565 
566  if ($ilAccess->checkAccess('write', '', $this->ref_id)) {
567  $mdgui = new ilObjectMetaDataGUI($this->object);
568  $mdtab = $mdgui->getTab();
569  if ($mdtab) {
570  $ilTabs->addTab(
571  "id_meta_data",
572  $lng->txt("meta_data"),
573  $mdtab
574  );
575  }
576  }
577 
578 
579  // export
580  if ($ilAccess->checkAccess("write", "", $this->object->getRefId())) {
581  $ilTabs->addTab(
582  "export",
583  $lng->txt("export"),
584  $this->ctrl->getLinkTargetByClass("ilexportgui", "")
585  );
586  }
587 
588  if ($ilAccess->checkAccess('edit_permission', '', $this->object->getRefId())) {
589  $ilTabs->addTab(
590  "id_permissions",
591  $lng->txt("perm_settings"),
592  $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm")
593  );
594  }
595 
596  $startfile = ilObjFileBasedLMAccess::_determineStartUrl($this->object->getId());
597  if ($startfile !== "" && $ilAccess->checkAccess('read', '', $this->ref_id)) {
598  $ilTabs->addNonTabbedLink(
599  "presentation_view",
600  $this->lng->txt("glo_presentation_view"),
601  "ilias.php?baseClass=ilHTLMPresentationGUI&ref_id=" . $this->object->getRefId(),
602  "_blank"
603  );
604  }
605  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress
ilLanguage $lng
setScreenIdComponent(string $a_comp)
ilAccessHandler $access
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTemplate()

ilObjFileBasedLMGUI::getTemplate ( )

Definition at line 438 of file class.ilObjFileBasedLMGUI.php.

Referenced by executeCommand().

438  : void
439  {
440  $this->tpl->loadStandardTemplate();
441  }
+ Here is the caller graph for this function:

◆ importFileObject()

ilObjFileBasedLMGUI::importFileObject ( int  $parent_id = null)
protected

Definition at line 643 of file class.ilObjFileBasedLMGUI.php.

References Vendor\Package\$e, createFromDirectory(), and ilManifestFileNotFoundImportException\getTmpDir().

643  : void
644  {
645  try {
646  parent::importFileObject();
648  // since there is no manifest xml we assume that this is an HTML export file
649  $this->createFromDirectory($e->getTmpDir());
650  }
651  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ infoScreen()

ilObjFileBasedLMGUI::infoScreen ( )

this one is called from the info button in the repository

Definition at line 469 of file class.ilObjFileBasedLMGUI.php.

References ILIAS\Repository\ctrl(), and showInfoScreen().

469  : void
470  {
471  $this->ctrl->setCmd("showSummary");
472  $this->ctrl->setCmdClass("ilinfoscreengui");
473  $this->showInfoScreen();
474  }
+ Here is the call graph for this function:

◆ initCreationForms()

ilObjFileBasedLMGUI::initCreationForms ( string  $new_type)
protected

Definition at line 214 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\initCreateForm(), and ilObjectGUI\initImportForm().

214  : array
215  {
216  return [
217  self::CFORM_NEW => $this->initCreateForm($new_type),
218  self::CFORM_IMPORT => $this->initImportForm($new_type)
219  ];
220  }
initImportForm(string $new_type)
initCreateForm(string $new_type)
+ Here is the call graph for this function:

◆ initSettingsForm()

ilObjFileBasedLMGUI::initSettingsForm ( )

Definition at line 241 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\$ctrl, $form, ilObjectGUI\$lng, ilObjFileBasedLMAccess\_determineStartUrl(), ILIAS\Repository\form(), ilObjectGUI\getObjectService(), ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, ilObjectServiceSettingsGUI\initServiceSettingsForm(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilTextAreaInputGUI\setCols(), ilCheckboxInputGUI\setOptionTitle(), ilNonEditableValueGUI\setValue(), ilObject\TITLE_LENGTH, and ilLanguage\txt().

Referenced by properties(), and saveProperties().

241  : void
242  {
243  $obj_service = $this->getObjectService();
244  $lng = $this->lng;
245  $ilCtrl = $this->ctrl;
246 
247  $this->form = new ilPropertyFormGUI();
248 
249  // title
250  $ti = new ilTextInputGUI($this->lng->txt("title"), "title");
251  $ti->setSize(min(40, ilObject::TITLE_LENGTH));
252  $ti->setMaxLength(ilObject::TITLE_LENGTH);
253  $ti->setRequired(true);
254  $this->form->addItem($ti);
255 
256  // description
257  $ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
258  $ta->setCols(40);
259  $ta->setRows(2);
260  $this->form->addItem($ta);
261 
262  // online
263  $cb = new ilCheckboxInputGUI($lng->txt("cont_online"), "cobj_online");
264  $cb->setOptionTitle($lng->txt(""));
265  $cb->setValue("y");
266  $this->form->addItem($cb);
267 
268  // startfile
269  $startfile = ilObjFileBasedLMAccess::_determineStartUrl($this->object->getId());
270 
271  $ne = new ilNonEditableValueGUI($lng->txt("cont_startfile"), "");
272  if ($startfile !== "") {
273  $ne->setValue(basename($startfile));
274  } else {
275  $ne->setValue(basename($this->lng->txt("no_start_file")));
276  }
277  $this->form->addItem($ne);
278 
279  $pres = new ilFormSectionHeaderGUI();
280  $pres->setTitle($this->lng->txt('obj_presentation'));
281  $this->form->addItem($pres);
282 
283  // tile image
284  $obj_service->commonSettings()->legacyForm($this->form, $this->object)->addTileImage();
285 
286  $this->form->addCommandButton("saveProperties", $lng->txt("save"));
287  $this->form->addCommandButton("toFilesystem", $lng->txt("cont_set_start_file"));
288 
289  $this->form->setTitle($lng->txt("cont_lm_properties"));
290  $this->form->setFormAction($ilCtrl->getFormAction($this, "saveProperties"));
291 
292  // additional features
293  $section = new ilFormSectionHeaderGUI();
294  $section->setTitle($this->lng->txt('obj_features'));
295  $this->form->addItem($section);
296 
298  $this->object->getId(),
299  $this->form,
300  [
302  ]
303  );
304  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
const TITLE_LENGTH
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a checkbox property in a property form.
ilLanguage $lng
static initServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
form( $class_path, string $cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a text area property in a property form.
setOptionTitle(string $a_optiontitle)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ learningProgress()

ilObjFileBasedLMGUI::learningProgress ( )

Definition at line 724 of file class.ilObjFileBasedLMGUI.php.

References ILIAS\Repository\ctrl().

724  : void
725  {
726  $this->ctrl->redirectByClass("illearningprogressgui", "");
727  }
+ Here is the call graph for this function:

◆ properties()

ilObjFileBasedLMGUI::properties ( )

Definition at line 229 of file class.ilObjFileBasedLMGUI.php.

References $tabs, ilObjectGUI\$tpl, ilTabsGUI\activateTab(), ILIAS\Repository\form(), getSettingsFormValues(), initSettingsForm(), and ilGlobalTemplateInterface\setContent().

229  : void
230  {
231  $tpl = $this->tpl;
232  $ilTabs = $this->tabs;
233 
234  $ilTabs->activateTab("id_settings");
235 
236  $this->initSettingsForm();
237  $this->getSettingsFormValues();
238  $tpl->setContent($this->form->getHTML());
239  }
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd)
activateTab(string $a_id)
+ Here is the call graph for this function:

◆ redirectAfterCreation()

ilObjFileBasedLMGUI::redirectAfterCreation ( )

Definition at line 716 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\$ctrl, ILIAS\Repository\object(), ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().

Referenced by afterSave().

716  : void
717  {
718  $ctrl = $this->ctrl;
719  $ctrl->setParameterByClass("ilObjFileBasedLMGUI", "ref_id", $this->object->getRefId());
720  $ctrl->redirectByClass(["ilrepositorygui", "ilObjFileBasedLMGUI"], "properties");
721  }
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
setParameterByClass(string $a_class, string $a_parameter, $a_value)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ redrawHeaderAction()

ilObjFileBasedLMGUI::redrawHeaderAction ( )

Definition at line 729 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\redrawHeaderActionObject().

729  : void
730  {
731  $this->redrawHeaderActionObject();
732  }
redrawHeaderActionObject()
Ajax call: redraw action header only.
+ Here is the call graph for this function:

◆ saveProperties()

ilObjFileBasedLMGUI::saveProperties ( )

Definition at line 332 of file class.ilObjFileBasedLMGUI.php.

References $form, $tabs, ilObjectGUI\$tpl, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilObjectGUI\getObjectService(), ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, initSettingsForm(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilGlobalTemplateInterface\setContent(), and ilObjectServiceSettingsGUI\updateServiceSettingsForm().

332  : void
333  {
334  $tpl = $this->tpl;
335  $ilTabs = $this->tabs;
336  $obj_service = $this->getObjectService();
337 
338  $this->initSettingsForm();
339  if ($this->form->checkInput()) {
340  $this->object->setTitle($this->form->getInput("title"));
341  $this->object->setDescription($this->form->getInput("desc"));
342  $this->object->setOfflineStatus(!(bool) $this->form->getInput("cobj_online"));
343 
344  $this->object->update();
345 
346  // tile image
347  $obj_service->commonSettings()->legacyForm($this->form, $this->object)->saveTileImage();
348 
349  // services
351  $this->object->getId(),
352  $this->form,
353  array(
355  )
356  );
357 
358  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
359  $this->ctrl->redirect($this, "properties");
360  }
361 
362  $ilTabs->activateTab("id_settings");
363  $this->form->setValuesByPost();
364  $tpl->setContent($this->form->getHTML());
365  }
static updateServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd)
+ Here is the call graph for this function:

◆ setStartFile()

ilObjFileBasedLMGUI::setStartFile ( string  $a_file)

Definition at line 431 of file class.ilObjFileBasedLMGUI.php.

References ILIAS\Repository\ctrl().

431  : void
432  {
433  $this->object->setStartFile($a_file);
434  $this->object->update();
435  $this->ctrl->redirectByClass("ilfilesystemgui", "listFiles");
436  }
+ Here is the call graph for this function:

◆ setTabs()

ilObjFileBasedLMGUI::setTabs ( )
protected

Definition at line 519 of file class.ilObjFileBasedLMGUI.php.

References getTabs(), and ilObjectGUI\setTitleAndDescription().

Referenced by executeCommand().

519  : void
520  {
521  $this->getTabs();
522  $this->setTitleAndDescription();
523  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showInfoScreen()

ilObjFileBasedLMGUI::showInfoScreen ( )

Definition at line 476 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\$access, $tabs, ilObjectGUI\$toolbar, ilTabsGUI\activateTab(), ILIAS\Repository\ctrl(), ilLinkButton\getInstance(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

Referenced by executeCommand(), and infoScreen().

476  : void
477  {
478  $ilToolbar = $this->toolbar;
479  $ilAccess = $this->access;
480  $ilTabs = $this->tabs;
481 
482  $ilTabs->activateTab('id_info');
483 
484  $this->lng->loadLanguageModule("meta");
485 
486  $info = new ilInfoScreenGUI($this);
487  $info->enablePrivateNotes();
488  $info->enableLearningProgress();
489 
490  $info->enableNews();
491  if ($ilAccess->checkAccess("write", "", $this->requested_ref_id)) {
492  $info->enableNewsEditing();
493 
494  $news_set = new ilSetting("news");
495  $enable_internal_rss = $news_set->get("enable_rss_for_internal");
496  if ($enable_internal_rss) {
497  $info->setBlockProperty("news", "settings", true);
498  }
499  }
500 
501  // add read / back button
502  if ($ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
503  // #15127
504  $button = ilLinkButton::getInstance();
505  $button->setCaption("view");
506  $button->setPrimary(true);
507  $button->setUrl("ilias.php?baseClass=ilHTLMPresentationGUI&ref_id=" . $this->object->getRefId());
508  $button->setTarget("ilContObj" . $this->object->getId());
509  $ilToolbar->addButtonInstance($button);
510  }
511 
512  // show standard meta data section
513  $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
514 
515  // forward the command
516  $this->ctrl->forwardCommand($info);
517  }
Class ilInfoScreenGUI.
ilToolbarGUI $toolbar
activateTab(string $a_id)
ilAccessHandler $access
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showLearningModule()

ilObjFileBasedLMGUI::showLearningModule ( )

Definition at line 443 of file class.ilObjFileBasedLMGUI.php.

References $ilUser, ilObjectGUI\$user, ilObjFileBasedLMAccess\_determineStartUrl(), ilLearningProgress\_tracProgress(), ilLPStatusWrapper\_updateStatus(), ANONYMOUS_USER_ID, ILIAS\Repository\object(), ilUtil\redirect(), and ilWACSignedPath\signFolderOfStartFile().

443  : void
444  {
446 
447  // #9483
448  if ($ilUser->getId() !== ANONYMOUS_USER_ID) {
450  $ilUser->getId(),
451  $this->object->getId(),
452  $this->object->getRefId(),
453  "htlm"
454  );
455 
456  ilLPStatusWrapper::_updateStatus($this->object->getId(), $ilUser->getId());
457  }
458 
459  $startfile = ilObjFileBasedLMAccess::_determineStartUrl($this->object->getId());
461  if ($startfile !== "") {
462  ilUtil::redirect($startfile);
463  }
464  }
const ANONYMOUS_USER_ID
Definition: constants.php:27
static _tracProgress(int $a_user_id, int $a_obj_id, int $a_ref_id, string $a_obj_type='')
static signFolderOfStartFile(string $start_file_path)
static redirect(string $a_script)
$ilUser
Definition: imgupload.php:34
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)
+ Here is the call graph for this function:

◆ toFilesystem()

ilObjFileBasedLMGUI::toFilesystem ( )

Definition at line 326 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\$ctrl, and ilCtrl\redirectByClass().

326  : void
327  {
328  $ilCtrl = $this->ctrl;
329  $ilCtrl->redirectByClass("ilfilesystemgui", "listFiles");
330  }
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ update()

ilObjFileBasedLMGUI::update ( )

Definition at line 426 of file class.ilObjFileBasedLMGUI.php.

References ilObjectGUI\updateObject().

426  : void
427  {
428  $this->updateObject();
429  }
updateObject()
updates object entry in object_data
+ Here is the call graph for this function:

Field Documentation

◆ $form

ilPropertyFormGUI ilObjFileBasedLMGUI::$form
protected

Definition at line 31 of file class.ilObjFileBasedLMGUI.php.

Referenced by initSettingsForm(), and saveProperties().

◆ $help

ilHelpGUI ilObjFileBasedLMGUI::$help
protected

Definition at line 33 of file class.ilObjFileBasedLMGUI.php.

Referenced by getTabs().

◆ $lm_request

StandardGUIRequest ilObjFileBasedLMGUI::$lm_request
protected

Definition at line 30 of file class.ilObjFileBasedLMGUI.php.

◆ $output_prepared

bool ilObjFileBasedLMGUI::$output_prepared

Definition at line 34 of file class.ilObjFileBasedLMGUI.php.

◆ $tabs

ilTabsGUI ilObjFileBasedLMGUI::$tabs
protected

The documentation for this class was generated from the following file: