ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjLearningModuleGUI.php
Go to the documentation of this file.
1<?php
2
27{
31 public function __construct(
32 $a_data,
33 int $a_id = 0,
34 bool $a_call_by_reference = true,
35 bool $a_prepare_output = true
36 ) {
37 $this->type = "lm";
38
39 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
40
41 # BETTER DO IT HERE THAN IN PARENT CLASS ( PROBLEMS FOR import, create)
42 $this->assignObject();
43
44 // SAME REASON
45 if ($a_id != 0) {
46 $this->lm_tree = $this->object->getLMTree();
47 }
48 }
49
50 protected function assignObject(): void
51 {
52 $this->link_params = "ref_id=" . $this->ref_id;
53 $this->object = new ilObjLearningModule($this->id, true);
56 $this->lm = $lm;
57 }
58
59 public function view(): void
60 {
61 if (strtolower($this->edit_request->getBaseClass()) == "iladministrationgui") {
62 $this->prepareOutput();
63 parent::viewObject();
64 } else {
65 $this->properties();
66 }
67 }
68}
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