Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 require_once("./Modules/LearningModule/classes/class.ilObjContentObjectGUI.php");
00024
00037 class ilObjLearningModuleGUI extends ilObjContentObjectGUI
00038 {
00039 var $object;
00044 function ilObjLearningModuleGUI($a_data,$a_id = 0,$a_call_by_reference = true, $a_prepare_output = true)
00045 {
00046 $this->type = "lm";
00047
00048 parent::ilObjContentObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
00049
00050 # BETTER DO IT HERE THAN IN PARENT CLASS ( PROBLEMS FOR import, create)
00051 $this->assignObject();
00052
00053
00054 if($a_id != 0)
00055 {
00056 $this->lm_tree =& $this->object->getLMTree();
00057 }
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069 }
00070
00071 function assignObject()
00072 {
00073 include_once("./Modules/LearningModule/classes/class.ilObjLearningModule.php");
00074
00075 $this->link_params = "ref_id=".$this->ref_id;
00076 $this->object =& new ilObjLearningModule($this->id, true);
00077 }
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088 function view()
00089 {
00090 if (strtolower($_GET["baseClass"]) == "iladministrationgui")
00091 {
00092 $this->prepareOutput();
00093 parent::viewObject();
00094 }
00095 else
00096 {
00097 $this->properties();
00098 }
00099 }
00100
00101 }
00102
00103 ?>