Class to represent a line item. More...
Public Member Functions | |
| __construct ($platform, $label, $pointsPossible) | |
| Class constructor. | |
| Platform | getPlatform () |
| Get platform. | |
| bool | save () |
| Save the line item to the platform. | |
| bool | delete () |
| Delete the line item on the platform. | |
| Outcome[] bool | getOutcomes ($limit=null) |
| Retrieve all outcomes. | |
| Outcome null bool | readOutcome ($user) |
| Retrieve the outcome for a user. | |
| bool | submitOutcome ($ltiOutcome, $user) |
| Submit the outcome for a user. | |
| bool | deleteOutcome ($user) |
| Delete the outcome for a user. | |
Static Public Member Functions | |
| static LineItem bool | fromEndpoint ($platform, $endpoint) |
| Retrieve a line item definition. | |
Public Attributes | |
| string | $label = null |
| Label value. | |
| int | $pointsPossible = 1 |
| Points possible value. | |
| string null | $ltiResourceLinkId = null |
| LTI Resource Link ID with which the line item is associated. | |
| string null | $resourceId = null |
| Tool resource ID associated with the line item. | |
| string null | $tag = null |
| Tag value. | |
| int null | $submitFrom = null |
| Outcome start submit timestamp. | |
| int null | $submitUntil = null |
| Outcome end submit timestamp. | |
| string | $endpoint = null |
| Line item endpoint. | |
| SubmissionReview | $submissionReview = null |
| Submission review. | |
Class to represent a line item.
| __construct | ( | $platform, | |
| $label, | |||
| $pointsPossible | |||
| ) |
Class constructor.
| Platform | $platform | Platform object |
| string | $label | Label |
| int | $pointsPossible | Points possible value |
| bool delete | ( | ) |
Delete the line item on the platform.
| bool deleteOutcome | ( | $user | ) |
Delete the outcome for a user.
| User | $user | User object |
|
static |
Retrieve a line item definition.
| Platform | $platform | Platform object |
| string | $endpoint | ID value |
| Outcome[] bool getOutcomes | ( | $limit = null | ) |
Retrieve all outcomes.
| int | null | $limit | Limit of outcomes to be returned in each request, null for service default |
| Platform getPlatform | ( | ) |
Get platform.
| Outcome null bool readOutcome | ( | $user | ) |
Retrieve the outcome for a user.
| User | $user | User object |
| bool save | ( | ) |
Save the line item to the platform.
| bool submitOutcome | ( | $ltiOutcome, | |
| $user | |||
| ) |
Submit the outcome for a user.
| Outcome | $ltiOutcome | Outcome object |
| User | $user | User object |
| string $endpoint = null |
Line item endpoint.
$endpoint
| string $label = null |
Label value.
$label
| string null $ltiResourceLinkId = null |
LTI Resource Link ID with which the line item is associated.
$ltiResourceLinkId
| int $pointsPossible = 1 |
Points possible value.
$pointsPossible
| string null $resourceId = null |
Tool resource ID associated with the line item.
$resourceId
| SubmissionReview $submissionReview = null |
Submission review.
$submissionReview
| int null $submitFrom = null |
Outcome start submit timestamp.
$submitFrom
| int null $submitUntil = null |
Outcome end submit timestamp.
$submitUntil
| string null $tag = null |
Tag value.
$tag