ILIAS  release_8 Revision v8.24
class.ilObjLearningModuleGUI.php
Go to the documentation of this file.
1<?php
2
27{
28 protected ilLMTree $lm_tree;
29
33 public function __construct(
34 $a_data,
35 int $a_id = 0,
36 bool $a_call_by_reference = true,
37 bool $a_prepare_output = true
38 ) {
39 $this->type = "lm";
40
41 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
42
43 # BETTER DO IT HERE THAN IN PARENT CLASS ( PROBLEMS FOR import, create)
44 $this->assignObject();
45
46 // SAME REASON
47 if ($a_id != 0) {
48 $this->lm_tree = $this->object->getLMTree();
49 }
50 }
51
52 protected function assignObject(): void
53 {
54 $this->link_params = "ref_id=" . $this->ref_id;
55 $this->object = new ilObjLearningModule($this->id, true);
58 $this->lm = $lm;
59 }
60
61 public function view(): void
62 {
63 if (strtolower($this->edit_request->getBaseClass()) == "iladministrationgui") {
64 $this->prepareOutput();
65 parent::viewObject();
66 } else {
67 $this->properties();
68 }
69 }
70}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjContentObjectGUI.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct( $a_data, int $a_id=0, bool $a_call_by_reference=true, bool $a_prepare_output=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareOutput(bool $show_sub_objects=true)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc