ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjLearningModuleGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4
20{
21 public $object;
26 public function __construct($a_data, $a_id = 0, $a_call_by_reference = true, $a_prepare_output = true)
27 {
28 $this->type = "lm";
29
30 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
31
32 # BETTER DO IT HERE THAN IN PARENT CLASS ( PROBLEMS FOR import, create)
33 $this->assignObject();
34
35 // SAME REASON
36 if ($a_id != 0) {
37 $this->lm_tree = $this->object->getLMTree();
38 }
39 }
40
41 public function assignObject()
42 {
43 $this->link_params = "ref_id=" . $this->ref_id;
44 $this->object = new ilObjLearningModule($this->id, true);
45 }
46
47 /*
48 function setLearningModuleObject(&$a_lm_obj)
49 {
50 $this->lm_obj =& $a_lm_obj;
51 //$this->obj =& $this->lm_obj;
52 }*/
53
54 // MOVED ALL *style METHODS TO base class
55
56 public function view()
57 {
58 if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
59 $this->prepareOutput();
60 parent::viewObject();
61 } else {
62 $this->properties();
63 }
64 }
65}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilObjContentObjectGUI.
Class ilLearningModuleGUI.
__construct($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor @access public.
Class ilObjLearningModule.
prepareOutput($a_show_subobjects=true)
prepare output
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc