ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
LSLearnerItem.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
24
class
LSLearnerItem
extends
LSItem
25
{
26
protected
int
$usr_id
;
27
protected
int
$learning_progress_status
;
28
protected
int
$availability_status
;
29
30
public
function
__construct
(
31
int
$usr_id,
32
int
$learning_progress_status,
33
int
$availability_status,
34
LSItem
$ls_item
35
) {
36
$this->usr_id =
$usr_id
;
37
$this->learning_progress_status =
$learning_progress_status
;
38
$this->availability_status =
$availability_status
;
39
parent::__construct
(
40
$ls_item->
getType
(),
41
$ls_item->
getTitle
(),
42
$ls_item->
getDescription
(),
43
$ls_item->
getIconPath
(),
44
$ls_item->
isOnline
(),
45
$ls_item->
getOrderNumber
(),
46
$ls_item->
getPostCondition
(),
47
$ls_item->
getRefId
(),
48
$ls_item->
getLPMode
()
49
);
50
}
51
52
public
function
getUserId
():
int
53
{
54
return
$this->usr_id
;
55
}
56
57
public
function
getLearningProgressStatus
():
int
58
{
59
return
$this->learning_progress_status
;
60
}
61
62
public
function
getAvailability
():
int
63
{
64
return
$this->availability_status
;
65
}
66
67
public
function
withPostCondition
(
ilLSPostCondition
$post_condition
):
LSItem
68
{
69
throw
new \LogicException(
'keep this item receptive only'
);
70
}
71
72
public
function
withOrderNumber
(
int
$order_number
):
LSItem
73
{
74
throw
new \LogicException(
'keep this item receptive only'
);
75
}
76
77
public
function
withOnline
(
bool
$online):
LSItem
78
{
79
throw
new \LogicException(
'keep this item receptive only'
);
80
}
81
}
LSLearnerItem\getUserId
getUserId()
Definition:
LSLearnerItem.php:52
LSItem\getTitle
getTitle()
Definition:
LSItem.php:63
LSItem\$post_condition
ilLSPostCondition $post_condition
Definition:
LSItem.php:32
LSItem\getLPMode
getLPMode()
Definition:
LSItem.php:98
LSItem\getOrderNumber
getOrderNumber()
Definition:
LSItem.php:83
LSItem\getPostCondition
getPostCondition()
Definition:
LSItem.php:88
LSLearnerItem\__construct
__construct(int $usr_id, int $learning_progress_status, int $availability_status, LSItem $ls_item)
Definition:
LSLearnerItem.php:30
LSLearnerItem\getAvailability
getAvailability()
Definition:
LSLearnerItem.php:62
LSItem\getDescription
getDescription()
Definition:
LSItem.php:68
LSLearnerItem\withPostCondition
withPostCondition(ilLSPostCondition $post_condition)
Definition:
LSLearnerItem.php:67
LSItem\$order_number
int $order_number
Definition:
LSItem.php:31
LSItem\getRefId
getRefId()
Definition:
LSItem.php:93
LSLearnerItem\getLearningProgressStatus
getLearningProgressStatus()
Definition:
LSLearnerItem.php:57
LSItem\getIconPath
getIconPath()
Definition:
LSItem.php:73
LSLearnerItem\withOrderNumber
withOrderNumber(int $order_number)
Definition:
LSLearnerItem.php:72
LSItem\isOnline
isOnline()
Definition:
LSItem.php:78
LSItem
Data holding class LSItem .
Definition:
LSItem.php:24
LSLearnerItem\withOnline
withOnline(bool $online)
Definition:
LSLearnerItem.php:77
LSLearnerItem\$learning_progress_status
int $learning_progress_status
Definition:
LSLearnerItem.php:27
LSLearnerItem\$availability_status
int $availability_status
Definition:
LSLearnerItem.php:28
ilLSPostCondition
A PostCondition does restrict the progression of a user through the learning sequence.
Definition:
class.ilLSPostCondition.php:28
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
LSLearnerItem\$usr_id
int $usr_id
Definition:
LSLearnerItem.php:26
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
LSItem\getType
getType()
Definition:
LSItem.php:58
LSLearnerItem
Add learning progress and availability information to the LSItem.
Definition:
LSLearnerItem.php:24
components
ILIAS
LearningSequence
classes
LearnerProgress
LSLearnerItem.php
Generated on Sun Aug 31 2025 23:03:13 for ILIAS by
1.8.13 (using
Doxyfile
)