Class to implement the Score service. More...
Public Member Functions | |
| __construct ($platform, $endpoint) | |
| Class constructor. | |
| bool | 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. | |
| ToolConsumer | getConsumer () |
| Get tool consumer. | |
| Platform | getPlatform () |
| Get platform. | |
| string | getScope () |
| Get access scope. | |
| HttpMessage | send ($method, $parameters=array(), $body=null) |
| Send a service request. | |
| HttpMessage | 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 | |
Public Attributes inherited from Service | |
| bool | $unsigned = false |
| Whether service request should be sent unsigned. | |
Protected Member Functions inherited from Service | |
| array | parseContextsInArray ($contexts, $arr) |
| Parse the JSON for context references. | |
Protected Attributes inherited from Service | |
| string | $endpoint = null |
| Service endpoint. | |
| string | $scope = null |
| Service access scope. | |
| string | $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.
References Service\$endpoint, and Score\$SCOPE.
| bool submit | ( | $ltiOutcome, | |
| $user | |||
| ) |
Submit an outcome for a user.
| LTI\Outcome | $ltiOutcome | Outcome object |
| LTI\User | $user | User object |
References Service\send().