ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 __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  {
39  $this->lm_tree = $this->object->getLMTree();
40  }
41  }
42 
43  function assignObject()
44  {
45  include_once("./Modules/LearningModule/classes/class.ilObjLearningModule.php");
46 
47  $this->link_params = "ref_id=".$this->ref_id;
48  $this->object = new ilObjLearningModule($this->id, true);
49  }
50 
51  /*
52  function setLearningModuleObject(&$a_lm_obj)
53  {
54  $this->lm_obj =& $a_lm_obj;
55  //$this->obj =& $this->lm_obj;
56  }*/
57 
58  // MOVED ALL *style METHODS TO base class
59 
60  function view()
61  {
62  if (strtolower($_GET["baseClass"]) == "iladministrationgui")
63  {
64  $this->prepareOutput();
65  parent::viewObject();
66  }
67  else
68  {
69  $this->properties();
70  }
71  }
72 
73 }
74 
75 ?>
__construct($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.
Class ilObjLearningModule.
$_GET["client_id"]
Class ilLearningModuleGUI.
prepareOutput($a_show_subobjects=true)
prepare output
properties()
edit properties form
Class ilObjContentObjectGUI.