ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilCourseLP.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
include_once
"Services/Object/classes/class.ilObjectLP.php"
;
6
14
class
ilCourseLP
extends
ilObjectLP
15
{
16
public
function
getDefaultMode
()
17
{
18
if
($this->
checkObjectives
())
19
{
20
return
ilLPObjSettings::LP_MODE_OBJECTIVES
;
21
}
22
return
ilLPObjSettings::LP_MODE_MANUAL_BY_TUTOR
;
23
}
24
25
public
function
getValidModes
()
26
{
27
if
($this->
checkObjectives
())
28
{
29
return
array(
ilLPObjSettings::LP_MODE_OBJECTIVES
);
30
}
31
return
array(
32
ilLPObjSettings::LP_MODE_DEACTIVATED
,
33
ilLPObjSettings::LP_MODE_MANUAL_BY_TUTOR
,
34
ilLPObjSettings::LP_MODE_COLLECTION
35
);
36
}
37
38
public
function
getCurrentMode
()
39
{
40
if
($this->
checkObjectives
())
41
{
42
return
ilLPObjSettings::LP_MODE_OBJECTIVES
;
43
}
44
return
parent::getCurrentMode();
45
}
46
47
protected
function
checkObjectives
()
48
{
49
include_once
"Modules/Course/classes/class.ilObjCourse.php"
;
50
if
(
ilObjCourse::_lookupViewMode
($this->obj_id) ==
IL_CRS_VIEW_OBJECTIVE
)
51
{
52
return
true
;
53
}
54
return
false
;
55
}
56
57
public
function
getMembers
($a_search =
true
)
58
{
59
include_once
"Modules/Course/classes/class.ilCourseParticipants.php"
;
60
$member_obj =
ilCourseParticipants::_getInstanceByObjId
($this->obj_id);
61
return
$member_obj->getMembers();
62
}
63
}
64
65
?>
ilObjectLP
Definition:
class.ilObjectLP.php:14
IL_CRS_VIEW_OBJECTIVE
const IL_CRS_VIEW_OBJECTIVE
Definition:
class.ilCourseConstants.php:39
ilLPObjSettings\LP_MODE_MANUAL_BY_TUTOR
const LP_MODE_MANUAL_BY_TUTOR
Definition:
class.ilLPObjSettings.php:36
ilCourseParticipants\_getInstanceByObjId
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
Definition:
class.ilCourseParticipants.php:77
ilLPObjSettings\LP_MODE_OBJECTIVES
const LP_MODE_OBJECTIVES
Definition:
class.ilLPObjSettings.php:29
ilLPObjSettings\LP_MODE_COLLECTION
const LP_MODE_COLLECTION
Definition:
class.ilLPObjSettings.php:30
ilCourseLP\getValidModes
getValidModes()
Definition:
class.ilCourseLP.php:25
ilObjCourse\_lookupViewMode
_lookupViewMode($a_id)
Definition:
class.ilObjCourse.php:573
ilCourseLP
Definition:
class.ilCourseLP.php:14
ilCourseLP\getDefaultMode
getDefaultMode()
Definition:
class.ilCourseLP.php:16
ilLPObjSettings\LP_MODE_DEACTIVATED
const LP_MODE_DEACTIVATED
Definition:
class.ilLPObjSettings.php:25
ilCourseLP\checkObjectives
checkObjectives()
Definition:
class.ilCourseLP.php:47
ilCourseLP\getCurrentMode
getCurrentMode()
Definition:
class.ilCourseLP.php:38
ilCourseLP\getMembers
getMembers($a_search=true)
Definition:
class.ilCourseLP.php:57
Modules
Course
classes
class.ilCourseLP.php
Generated on Mon Mar 31 2025 19:00:34 for ILIAS by
1.8.13 (using
Doxyfile
)