Class to represent a line-item. More...
Public Member Functions | |
__construct ($platform, $label, $pointsPossible) | |
Class constructor. | |
getPlatform () | |
Get platform. | |
save () | |
Save the line-item to the platform. | |
delete () | |
Delete the line-item on the platform. | |
getOutcomes ($limit=null) | |
Retrieve all outcomes. | |
readOutcome ($user) | |
Retrieve the outcome for a user. | |
submitOutcome ($ltiOutcome, $user) | |
Submit the outcome for a user. | |
deleteOutcome ($user) | |
Delete the outcome for a user. | |
Static Public Member Functions | |
static | fromEndpoint ($platform, $endpoint) |
Retrieve a line-item definition. | |
Data Fields | |
$label = null | |
Label value. | |
$pointsPossible = 1 | |
Points possible value. | |
$ltiResourceLinkId = null | |
LTI Resource Link ID with which the line item is associated. | |
$resourceId = null | |
Tool resource ID associated with the line-item. | |
$tag = null | |
Tag value. | |
$submitFrom = null | |
Outcome start submit timestamp. | |
$submitUntil = null | |
Outcome end submit timestamp. | |
$endpoint = null | |
Line-item endpoint. | |
$submissionReview = null | |
Submission review. | |
Class to represent a line-item.
Definition at line 14 of file LineItem.php.
__construct | ( | $platform, | |
$label, | |||
$pointsPossible | |||
) |
Class constructor.
Platform | $platform | Platform object |
string | $label | Label |
int | $pointsPossible | Points possible value |
Definition at line 94 of file LineItem.php.
References LineItem\$label, and LineItem\$pointsPossible.
delete | ( | ) |
Delete the line-item on the platform.
Definition at line 127 of file LineItem.php.
deleteOutcome | ( | $user | ) |
Delete the outcome for a user.
User | $user | User object |
Definition at line 180 of file LineItem.php.
|
static |
Retrieve a line-item definition.
Platform | $platform | Platform object |
string | $endpoint | ID value |
Definition at line 195 of file LineItem.php.
References LineItem\$endpoint.
getOutcomes | ( | $limit = null | ) |
Retrieve all outcomes.
int | null | $limit | Limit of outcomes to be returned in each request, null for service default |
Definition at line 140 of file LineItem.php.
getPlatform | ( | ) |
Get platform.
Definition at line 106 of file LineItem.php.
Referenced by LineItem\createLineItem(), LineItem\getAll(), and LineItem\saveLineItem().
readOutcome | ( | $user | ) |
Retrieve the outcome for a user.
User | $user | User object |
Definition at line 153 of file LineItem.php.
save | ( | ) |
Save the line-item to the platform.
Definition at line 116 of file LineItem.php.
submitOutcome | ( | $ltiOutcome, | |
$user | |||
) |
Submit the outcome for a user.
Outcome | $ltiOutcome | Outcome object |
User | $user | User object |
Definition at line 167 of file LineItem.php.
string null $endpoint = null |
Line-item endpoint.
Definition at line 71 of file LineItem.php.
Referenced by LineItem\__construct(), LineItem\fromEndpoint(), LineItem\getAll(), and LineItem\getLineItem().
string null $label = null |
string null $ltiResourceLinkId = null |
LTI Resource Link ID with which the line item is associated.
Definition at line 36 of file LineItem.php.
Referenced by LineItem\getAll().
int $pointsPossible = 1 |
Points possible value.
Definition at line 29 of file LineItem.php.
Referenced by LineItem\__construct().
string null $resourceId = null |
Tool resource ID associated with the line-item.
Definition at line 43 of file LineItem.php.
Referenced by LineItem\getAll().
SubmissionReview null $submissionReview = null |
Submission review.
Definition at line 78 of file LineItem.php.
int null $submitFrom = null |
Outcome start submit timestamp.
Definition at line 57 of file LineItem.php.
int null $submitUntil = null |
Outcome end submit timestamp.
Definition at line 64 of file LineItem.php.
string null $tag = null |