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