Class to implement the Result service.  
 More...
 | 
| const  | MEDIA_TYPE_RESULT = 'application/vnd.ims.lis.v2.resultcontainer+json' | 
|   | Media type for the Result service.  
  | 
|   | 
| bool  | $unsigned = false | 
|   | Whether service request should be sent unsigned.  
  | 
|   | 
 | 
| static string  | $SCOPE = 'https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly' | 
|   | Access scope.  
  | 
|   | 
| static int  | $defaultLimit = 500 | 
|   | Default limit on size of container to be returned from requests.  
  | 
|   | 
 | 
| array  | parseContextsInArray (object|array $contexts, array $arr) | 
|   | Parse the JSON for context references.  
  | 
|   | 
| string  | $endpoint = null | 
|   | Service endpoint.  
  | 
|   | 
| string  | $scope = null | 
|   | Service access scope.  
  | 
|   | 
| string  | $mediaType = null | 
|   | Media type of message body.  
  | 
|   | 
Class to implement the Result service. 
- Author
 - Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com 
 
- Copyright
 - SPV Software Products 
 
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
 
 
◆ __construct()
      
        
          | ceLTIc\LTI\Service\Result::__construct  | 
          ( | 
          Platform |           $platform,  | 
        
        
           | 
           | 
          string |           $endpoint,  | 
        
        
           | 
           | 
          ?int |           $limit = null,  | 
        
        
           | 
           | 
          bool |           $pagingMode = false ) | 
        
      
 
Class constructor. 
- Parameters
 - 
  
    | 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  | 
  
   
 
 
◆ get()
      
        
          | Outcome null bool ceLTIc\LTI\Service\Result::get  | 
          ( | 
          User |           $user | ) | 
           | 
        
      
 
Retrieve an outcome for a user. 
- Parameters
 - 
  
  
 
- Returns
 - Outcome|null|bool Outcome object, or null if none, or false on error 
 
 
 
◆ getAll()
      
        
          | Outcome[] bool ceLTIc\LTI\Service\Result::getAll  | 
          ( | 
          ?int |           $limit = null | ) | 
           | 
        
      
 
Retrieve all outcomes for a line-item. 
- Parameters
 - 
  
    | int | null | $limit | Limit of results to be returned in each request, null for service default | 
  
   
- Returns
 - Outcome[]|bool Array of Outcome objects or false on error 
 
 
 
◆ $defaultLimit
  
  
      
        
          | int ceLTIc\LTI\Service\Result::$defaultLimit = 500 | 
         
       
   | 
  
static   | 
  
 
Default limit on size of container to be returned from requests. 
 
 
◆ $SCOPE
  
  
      
        
          | string ceLTIc\LTI\Service\Result::$SCOPE = 'https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly' | 
         
       
   | 
  
static   | 
  
 
 
◆ MEDIA_TYPE_RESULT
      
        
          | const ceLTIc\LTI\Service\Result::MEDIA_TYPE_RESULT = 'application/vnd.ims.lis.v2.resultcontainer+json' | 
        
      
 
Media type for the Result service.