ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilObjLearningModuleGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once("./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
5
21{
22 public $object;
27 public function __construct($a_data, $a_id = 0, $a_call_by_reference = true, $a_prepare_output = true)
28 {
29 $this->type = "lm";
30
31 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
32
33 # BETTER DO IT HERE THAN IN PARENT CLASS ( PROBLEMS FOR import, create)
34 $this->assignObject();
35
36 // SAME REASON
37 if ($a_id != 0) {
38 $this->lm_tree = $this->object->getLMTree();
39 }
40 }
41
42 public function assignObject()
43 {
44 include_once("./Modules/LearningModule/classes/class.ilObjLearningModule.php");
45
46 $this->link_params = "ref_id=" . $this->ref_id;
47 $this->object = new ilObjLearningModule($this->id, true);
48 }
49
50 /*
51 function setLearningModuleObject(&$a_lm_obj)
52 {
53 $this->lm_obj =& $a_lm_obj;
54 //$this->obj =& $this->lm_obj;
55 }*/
56
57 // MOVED ALL *style METHODS TO base class
58
59 public function view()
60 {
61 if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
62 $this->prepareOutput();
63 parent::viewObject();
64 } else {
65 $this->properties();
66 }
67 }
68}
$_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