ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilObjLearningModuleGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once("./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
5 
20 {
21  var $object;
26  function ilObjLearningModuleGUI($a_data,$a_id = 0,$a_call_by_reference = true, $a_prepare_output = true)
27  {
28  $this->type = "lm";
29 
30  parent::ilObjContentObjectGUI($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  {
38  $this->lm_tree =& $this->object->getLMTree();
39  }
40  /*
41  global $ilias, $tpl, $lng, $objDefinition;
42 
43  $this->ilias =& $ilias;
44  $this->tpl =& $tpl;
45  $this->lng =& $lng;
46  $this->objDefinition =& $objDefinition;
47  $this->lm_tree =& $a_tree;
48  */
49 
50  //$this->read(); todo
51  }
52 
53  function assignObject()
54  {
55  include_once("./Modules/LearningModule/classes/class.ilObjLearningModule.php");
56 
57  $this->link_params = "ref_id=".$this->ref_id;
58  $this->object =& new ilObjLearningModule($this->id, true);
59  }
60 
61  /*
62  function setLearningModuleObject(&$a_lm_obj)
63  {
64  $this->lm_obj =& $a_lm_obj;
65  //$this->obj =& $this->lm_obj;
66  }*/
67 
68  // MOVED ALL *style METHODS TO base class
69 
70  function view()
71  {
72  if (strtolower($_GET["baseClass"]) == "iladministrationgui")
73  {
74  $this->prepareOutput();
76  }
77  else
78  {
79  $this->properties();
80  }
81  }
82 
83 }
84 
85 ?>