Class to represent an outcome.
More...
|
| __construct (int|float|string|null $value=null, int|float|null $pointsPossible=1, string $activityProgress='Completed', string $gradingProgress='FullyGraded') |
| Class constructor.
|
|
int float string null | getValue () |
| Get the outcome value.
|
|
void | setValue (int|float|string|null $value) |
| Set the outcome value.
|
|
int float null | getPointsPossible () |
| Get the points possible value.
|
|
void | setPointsPossible (int|float|null $pointsPossible) |
| Set the points possible value.
|
|
void | assign ($outcome) |
| Assign property values from another outcome instance.
|
|
|
const | ALLOWED_ACTIVITY_PROGRESS |
| Allowed values for Activity Progress.
|
|
const | ALLOWED_GRADING_PROGRESS |
| Allowed values for Grading Progress.
|
|
string | $language = null |
| Language value.
|
|
string | $status = null |
| Outcome status value.
|
|
string | $date = null |
| Outcome date value.
|
|
OutcomeType | $type = null |
| Outcome type value.
|
|
string | $activityProgress = null |
| Activity progress.
|
|
string | $gradingProgress = null |
| Grading progress.
|
|
string | $comment = null |
| Comment.
|
|
DateTime | $submissionStarted = null |
| Date submission started.
|
|
DateTime | $submissionCompleted = null |
| Date submission completed.
|
|
string | $dataSource = null |
| Outcome data source value.
|
|
string | $ltiUserId = null |
| LTI user ID.
|
|
Class to represent an outcome.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
__construct |
( |
int|float|string|null | $value = null, |
|
|
int|float|null | $pointsPossible = 1, |
|
|
string | $activityProgress = 'Completed', |
|
|
string | $gradingProgress = 'FullyGraded' ) |
Class constructor.
- Parameters
-
int | float | string | null | $value | Outcome value (optional, default is none) |
int | float | null | $pointsPossible | Points possible value (optional, default is 1) |
string | $activityProgress | Activity progress (optional, default is 'Completed') |
string | $gradingProgress | Grading progress (optional, default is 'FullyGraded') |
◆ assign()
Assign property values from another outcome instance.
- Parameters
-
Outcome | $outcome | Outcome instance |
◆ getPointsPossible()
int float null getPointsPossible |
( |
| ) |
|
Get the points possible value.
- Returns
- int|float|null Points possible value
◆ getValue()
int float string null getValue |
( |
| ) |
|
Get the outcome value.
- Returns
- int|float|string|null Outcome value
◆ setPointsPossible()
void setPointsPossible |
( |
int|float|null | $pointsPossible | ) |
|
Set the points possible value.
- Parameters
-
int | float | null | $pointsPossible | Points possible value |
◆ setValue()
void setValue |
( |
int|float|string|null | $value | ) |
|
◆ ALLOWED_ACTIVITY_PROGRESS
const ALLOWED_ACTIVITY_PROGRESS |
Initial value:= [
'Initialized',
'Started',
'InProgress',
'Submitted',
'Completed'
]
Allowed values for Activity Progress.
◆ ALLOWED_GRADING_PROGRESS
const ALLOWED_GRADING_PROGRESS |
Initial value:= [
'FullyGraded',
'Pending',
'PendingManual',
'Failed',
'NotReady'
]
Allowed values for Grading Progress.