Class to implement the Score service. More...
  
Public Member Functions | |
| __construct ($platform, $endpoint) | |
| Class constructor.   | |
| submit ($ltiOutcome, $user) | |
| Submit an outcome for a user.   | |
  Public Member Functions inherited from AssignmentGrade | |
| __construct ($platform, $endpoint, $path='') | |
| Class constructor.   | |
  Public Member Functions inherited from Service | |
| __construct ($platform, $endpoint) | |
| Class constructor.   | |
| getConsumer () | |
| Get tool consumer.   | |
| getPlatform () | |
| Get platform.   | |
| getScope () | |
| Get access scope.   | |
| send ($method, $parameters=array(), $body=null) | |
| Send a service request.   | |
| getHttpMessage () | |
| Get HttpMessage object for last request.   | |
Static Public Attributes | |
| static | $SCOPE = 'https://purl.imsglobal.org/spec/lti-ags/scope/score' | 
| Access scope.   | |
Additional Inherited Members | |
  Data Fields inherited from Service | |
| $unsigned = false | |
| Whether service request should be sent unsigned.   | |
  Protected Member Functions inherited from Service | |
| parseContextsInArray ($contexts, $arr) | |
| Parse the JSON for context references.   | |
  Protected Attributes inherited from Service | |
| $endpoint = null | |
| Service endpoint.   | |
| $scope = null | |
| Service access scope.   | |
| $mediaType = null | |
| Media type of message body.   | |
Class to implement the Score service.
| __construct | ( | $platform, | |
| $endpoint | |||
| ) | 
Class constructor.
| Platform | $platform | Platform object for this service request | 
| string | $endpoint | Service endpoint | 
Reimplemented from Service.
Definition at line 32 of file Score.php.
References Service\$endpoint, and Score\$SCOPE.
| submit | ( | $ltiOutcome, | |
| $user | |||
| ) | 
Submit an outcome for a user.
| Outcome | $ltiOutcome | Outcome object | 
| User | $user | User object | 
Definition at line 47 of file Score.php.
References Service\send().
      
  | 
  static | 
Access scope.
Definition at line 24 of file Score.php.
Referenced by Score\__construct(), ResourceLink\hasOutcomesService(), Context\hasScoreService(), and ResourceLink\hasScoreService().