Class to implement the Result service. More...
Public Member Functions | |
__construct ($platform, $endpoint, $limit=null, $pagingMode=false) | |
Class constructor. | |
getAll ($limit=null) | |
Retrieve all outcomes for a line-item. | |
get ($user) | |
Retrieve an outcome for a user. | |
![]() | |
__construct ($platform, $endpoint, $path='') | |
Class constructor. | |
![]() | |
__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/result.readonly' |
Access scope. | |
static | $defaultLimit = 500 |
Default limit on size of container to be returned from requests. | |
Additional Inherited Members | |
![]() | |
$unsigned = false | |
Whether service request should be sent unsigned. | |
![]() | |
parseContextsInArray ($contexts, $arr) | |
Parse the JSON for context references. | |
![]() | |
$endpoint = null | |
Service endpoint. | |
$scope = null | |
Service access scope. | |
$mediaType = null | |
Media type of message body. | |
Class to implement the Result service.
Definition at line 16 of file Result.php.
__construct | ( | $platform, | |
$endpoint, | |||
$limit = null , |
|||
$pagingMode = false |
|||
) |
Class constructor.
Platform | $platform | Platform object for this service request |
string | $endpoint | Service endpoint |
int | null | $limit | Limit of results to be returned in each request, null for all |
bool | $pagingMode | True if only a single page should be requested when a limit is set |
Definition at line 59 of file Result.php.
References Service\$endpoint, and Result\$SCOPE.
get | ( | $user | ) |
Retrieve an outcome for a user.
User | $user | User object |
Definition at line 119 of file Result.php.
References Service\send().
getAll | ( | $limit = null | ) |
Retrieve all outcomes for a line-item.
int | null | $limit | Limit of results to be returned in each request, null for service default |
Definition at line 75 of file Result.php.
References Result\$defaultLimit, Service\$endpoint, and Service\send().
|
static |
Default limit on size of container to be returned from requests.
Definition at line 31 of file Result.php.
Referenced by Result\getAll().
|
static |
Access scope.
Definition at line 24 of file Result.php.
Referenced by Result\__construct(), ResourceLink\hasOutcomesService(), Context\hasResultService(), and ResourceLink\hasResultService().