ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
20
class
ilObjLearningModuleGUI
extends
ilObjContentObjectGUI
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
}
ilObjLearningModuleGUI\__construct
__construct($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.
Definition:
class.ilObjLearningModuleGUI.php:27
ilObjLearningModule
Class ilObjLearningModule.
Definition:
class.ilObjLearningModule.php:15
$_GET
$_GET["client_id"]
Definition:
cfg.phpunit.template.php:12
ilObjectGUI\$ref_id
$ref_id
Definition:
class.ilObjectGUI.php:94
ilObjLearningModuleGUI
Class ilLearningModuleGUI.
Definition:
class.ilObjLearningModuleGUI.php:20
ilObjectGUI\prepareOutput
prepareOutput($a_show_subobjects=true)
prepare output
Definition:
class.ilObjectGUI.php:296
ilObjContentObjectGUI\properties
properties()
edit properties form
Definition:
class.ilObjContentObjectGUI.php:415
ilObjLearningModuleGUI\$object
$object
Definition:
class.ilObjLearningModuleGUI.php:22
ilObjContentObjectGUI
Class ilObjContentObjectGUI.
Definition:
class.ilObjContentObjectGUI.php:15
php
ilObjLearningModuleGUI\assignObject
assignObject()
Definition:
class.ilObjLearningModuleGUI.php:42
ilObjLearningModuleGUI\view
view()
Definition:
class.ilObjLearningModuleGUI.php:59
Modules
LearningModule
classes
class.ilObjLearningModuleGUI.php
Generated on Thu Jan 16 2025 19:02:05 for ILIAS by
1.8.13 (using
Doxyfile
)