85 private $platform =
null;
96 $this->platform = $platform;
108 return $this->platform;
119 return $service->saveLineItem($this);
127 public function delete()
130 return $service->deleteLineItem($this);
142 $resultService =
new Service\Result($this->platform, $this->endpoint);
143 return $resultService->getAll();
155 $resultService =
new Service\Result($this->platform, $this->endpoint);
156 return $resultService->get($user);
169 $scoreService =
new Service\Score($this->platform, $this->endpoint);
170 return $scoreService->submit($ltiOutcome, $user);
183 $scoreService =
new Service\Score($this->platform, $this->endpoint);
184 return $scoreService->submit($ltiOutcome, $user);
197 return Service\LineItem::getLineItem($platform,
$endpoint);
Class to represent a line-item.
$submissionReview
Submission review.
$submitUntil
Outcome end submit timestamp.
__construct($platform, $label, $pointsPossible)
Class constructor.
$endpoint
Line-item endpoint.
deleteOutcome($user)
Delete the outcome for a user.
$submitFrom
Outcome start submit timestamp.
$pointsPossible
Points possible value.
readOutcome($user)
Retrieve the outcome for a user.
submitOutcome($ltiOutcome, $user)
Submit the outcome for a user.
static fromEndpoint($platform, $endpoint)
Retrieve a line-item definition.
$ltiResourceLinkId
LTI Resource Link ID with which the line item is associated.
$resourceId
Tool resource ID associated with the line-item.
getOutcomes($limit=null)
Retrieve all outcomes.
getPlatform()
Get platform.
save()
Save the line-item to the platform.
Class to represent an outcome.
Class to implement the Result service.
Class to implement the Score service.
Class to implement a service.