LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
Score Class Reference

Class to implement the Score service. More...

Inheritance diagram for Score:
AssignmentGrade Service

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.
 

Detailed Description

Class to implement the Score 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
Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3

Definition at line 16 of file Score.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $platform,
  $endpoint 
)

Class constructor.

Parameters
Platform$platformPlatform object for this service request
string$endpointService endpoint

Reimplemented from Service.

Definition at line 32 of file Score.php.

References Service\$endpoint, and Score\$SCOPE.

Member Function Documentation

◆ submit()

submit (   $ltiOutcome,
  $user 
)

Submit an outcome for a user.

Parameters
Outcome$ltiOutcomeOutcome object
User$userUser object
Returns
bool True if successful, otherwise false

Definition at line 47 of file Score.php.

References Service\send().

Field Documentation

◆ $SCOPE

string $SCOPE = 'https://purl.imsglobal.org/spec/lti-ags/scope/score'
static

The documentation for this class was generated from the following file: