ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 
4 require_once("./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
5 
21 {
22  var $object;
27  function ilObjLearningModuleGUI($a_data,$a_id = 0,$a_call_by_reference = true, $a_prepare_output = true)
28  {
29  $this->type = "lm";
30 
31  parent::ilObjContentObjectGUI($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  {
39  $this->lm_tree =& $this->object->getLMTree();
40  }
41  /*
42  global $ilias, $tpl, $lng, $objDefinition;
43 
44  $this->ilias =& $ilias;
45  $this->tpl =& $tpl;
46  $this->lng =& $lng;
47  $this->objDefinition =& $objDefinition;
48  $this->lm_tree =& $a_tree;
49  */
50 
51  //$this->read(); todo
52  }
53 
54  function assignObject()
55  {
56  include_once("./Modules/LearningModule/classes/class.ilObjLearningModule.php");
57 
58  $this->link_params = "ref_id=".$this->ref_id;
59  $this->object =& new ilObjLearningModule($this->id, true);
60  }
61 
62  /*
63  function setLearningModuleObject(&$a_lm_obj)
64  {
65  $this->lm_obj =& $a_lm_obj;
66  //$this->obj =& $this->lm_obj;
67  }*/
68 
69  // MOVED ALL *style METHODS TO base class
70 
71  function view()
72  {
73  if (strtolower($_GET["baseClass"]) == "iladministrationgui")
74  {
75  $this->prepareOutput();
76  parent::viewObject();
77  }
78  else
79  {
80  $this->properties();
81  }
82  }
83 
84 }
85 
86 ?>
Class ilObjLearningModule.
$_GET["client_id"]
Class ilLearningModuleGUI.
properties()
edit properties form
prepareOutput()
prepare output
Class ilObjContentObjectGUI.
ilObjLearningModuleGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.