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