LTI Integration Library 5.1.4
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
Outcome Class Reference

Class to represent an outcome. More...

Public Member Functions

 __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.
 

Public Attributes

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.
 

Detailed Description

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
Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3

Constructor & Destructor Documentation

◆ __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$valueOutcome value (optional, default is none)
int | float | null$pointsPossiblePoints possible value (optional, default is 1)
string$activityProgressActivity progress (optional, default is 'Completed')
string$gradingProgressGrading progress (optional, default is 'FullyGraded')

Member Function Documentation

◆ assign()

void assign ( $outcome)

Assign property values from another outcome instance.

Parameters
Outcome$outcomeOutcome 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$pointsPossiblePoints possible value

◆ setValue()

void setValue ( int|float|string|null $value)

Set the outcome value.

Parameters
int | float | string | null$valueOutcome value

Referenced by ResourceLink\hasResultService().

Member Data Documentation

◆ 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.