ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
Outcome.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\LTI\ToolProvider
;
20
28
class
Outcome
29
{
33
public
const
ALLOWED_ACTIVITY_PROGRESS
= array(
34
'Initialized'
,
35
'Started'
,
36
'InProgress'
,
37
'Submitted'
,
38
'Completed'
39
);
40
44
public
const
ALLOWED_GRADING_PROGRESS
= array(
45
'FullyGraded'
,
46
'Pending'
,
47
'PendingManual'
,
48
'Failed'
,
49
'NotReady'
50
);
51
57
public
?
string
$language
=
null
;
58
64
public
?
string
$status
=
null
;
65
71
public
?
string
$date
=
null
;
72
78
public
?
string
$type
=
null
;
79
85
public
?
string
$activityProgress
=
null
;
86
92
public
?
string
$gradingProgress
=
null
;
93
99
public
?
string
$comment
=
null
;
100
106
public
?
string
$dataSource
=
null
;
107
113
private
$value
=
null
;
114
120
private
int
$pointsPossible
= 1;
121
129
public
function
__construct
(
130
$value
=
null
,
131
int
$pointsPossible
= 1,
132
string
$activityProgress
=
'Completed'
,
133
string
$gradingProgress
=
'FullyGraded'
134
) {
135
$this->value =
$value
;
136
$this->pointsPossible =
$pointsPossible
;
137
$this->
language
=
'en-US'
;
138
$this->date = gmdate(
'Y-m-d\TH:i:s\Z'
, time());
139
$this->type =
'decimal'
;
140
if
(in_array(
$activityProgress
, self::ALLOWED_ACTIVITY_PROGRESS)) {
141
$this->activityProgress =
$activityProgress
;
142
}
else
{
143
$this->activityProgress =
'Completed'
;
144
}
145
if
(in_array(
$gradingProgress
, self::ALLOWED_GRADING_PROGRESS)) {
146
$this->gradingProgress =
$gradingProgress
;
147
}
else
{
148
$this->gradingProgress =
'FullyGraded'
;
149
}
150
$this->
comment
=
''
;
151
}
152
158
public
function
getValue
(): ?string
159
{
160
return
$this->value
;
161
}
162
167
public
function
setValue
(
string
$value
)
168
{
169
$this->value =
$value
;
170
}
171
177
public
function
getPointsPossible
(): ?
int
178
{
179
return
$this->pointsPossible
;
180
}
181
186
public
function
setPointsPossible
(?
int
$pointsPossible
)
187
{
188
$this->pointsPossible =
$pointsPossible
;
189
}
190
}
ILIAS\LTI\ToolProvider\Outcome
Class to represent an outcome.
Definition:
Outcome.php:29
ILIAS\LTI\ToolProvider\Outcome\$activityProgress
string $activityProgress
Activity progress.
Definition:
Outcome.php:85
ILIAS\LTI\ToolProvider\Outcome\$type
string $type
Outcome type value.
Definition:
Outcome.php:78
ILIAS\LTI\ToolProvider\Outcome\$status
string $status
Outcome status value.
Definition:
Outcome.php:64
ILIAS\LTI\ToolProvider\Outcome\$pointsPossible
int $pointsPossible
Points possible value.
Definition:
Outcome.php:120
ILIAS\LTI\ToolProvider\Outcome\setPointsPossible
setPointsPossible(?int $pointsPossible)
Set the points possible value.
Definition:
Outcome.php:186
ILIAS\LTI\ToolProvider\Outcome\$gradingProgress
string $gradingProgress
Grading progress.
Definition:
Outcome.php:92
ILIAS\LTI\ToolProvider\Outcome\ALLOWED_GRADING_PROGRESS
const ALLOWED_GRADING_PROGRESS
Allowed values for Grading Progress.
Definition:
Outcome.php:44
ILIAS\LTI\ToolProvider\Outcome\$comment
string $comment
Comment.
Definition:
Outcome.php:99
ILIAS\LTI\ToolProvider\Outcome\ALLOWED_ACTIVITY_PROGRESS
const ALLOWED_ACTIVITY_PROGRESS
Allowed values for Activity Progress.
Definition:
Outcome.php:33
ILIAS\LTI\ToolProvider\Outcome\getValue
getValue()
Get the outcome value.
Definition:
Outcome.php:158
ILIAS\LTI\ToolProvider\Outcome\$language
string $language
Language value.
Definition:
Outcome.php:57
ILIAS\LTI\ToolProvider\Outcome\$dataSource
string $dataSource
Outcome data source value.
Definition:
Outcome.php:106
ILIAS\LTI\ToolProvider\Outcome\getPointsPossible
getPointsPossible()
Get the points possible value.
Definition:
Outcome.php:177
ILIAS\LTI\ToolProvider\Outcome\setValue
setValue(string $value)
Set the outcome value.
Definition:
Outcome.php:167
ILIAS\LTI\ToolProvider\Outcome\$value
$value
Outcome value.
Definition:
Outcome.php:113
ILIAS\LTI\ToolProvider\Outcome\$date
string $date
Outcome date value.
Definition:
Outcome.php:71
ILIAS\LTI\ToolProvider\Outcome\__construct
__construct( $value=null, int $pointsPossible=1, string $activityProgress='Completed', string $gradingProgress='FullyGraded')
Class constructor.
Definition:
Outcome.php:129
ILIAS\LTI\ToolProvider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AccessToken.php:19
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\UI\examples\Symbol\Glyph\Comment\comment
comment()
Definition:
comment.php:7
ILIAS\UI\examples\Symbol\Glyph\Language\language
language()
Definition:
language.php:7
Services
LTI
src
ToolProvider
Outcome.php
Generated on Sun Nov 2 2025 22:01:39 for ILIAS by
1.9.4 (using
Doxyfile
)