Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Packback\Lti1p3\ServiceRequest Class Reference
Inheritance diagram for Packback\Lti1p3\ServiceRequest:
Packback\Lti1p3\Interfaces\IServiceRequest

Public Member Functions

 __construct (private string $method, private string $url, private string $type=self::TYPE_UNSUPPORTED)
 
 getErrorPrefix ()
 
 getMaskResponseLogs ()
 
 getMethod ()
 
 getPayload ()
 
 getUrl ()
 
 setAccept (string $accept)
 
 setAccessToken (string $accessToken)
 
 setBody (string $body)
 
 setContentType (string $contentType)
 
 setMaskResponseLogs (bool $shouldMask)
 
 setPayload (array $payload)
 
 setUrl (string $url)
 

Public Attributes

const METHOD_DELETE = 'DELETE'
 
const METHOD_GET = 'GET'
 
const METHOD_POST = 'POST'
 
const METHOD_PUT = 'PUT'
 
const TYPE_AUTH = 'auth'
 
const TYPE_CREATE_LINEITEM = 'create_lineitem'
 
const TYPE_DELETE_LINEITEM = 'delete_lineitem'
 
const TYPE_GET_GRADES = 'get_grades'
 
const TYPE_GET_GROUPS = 'get_groups'
 
const TYPE_GET_KEYSET = 'get_keyset'
 
const TYPE_GET_LINEITEM = 'get_lineitem'
 
const TYPE_GET_LINEITEMS = 'get_lineitems'
 
const TYPE_GET_MEMBERSHIPS = 'get_memberships'
 
const TYPE_GET_SETS = 'get_sets'
 
const TYPE_SYNC_GRADE = 'sync_grades'
 
const TYPE_UNSUPPORTED = 'unsupported'
 
const TYPE_UPDATE_LINEITEM = 'update_lineitem'
 

Member Function Documentation

◆ getErrorPrefix()

Packback\Lti1p3\ServiceRequest::getErrorPrefix ( )

◆ getMaskResponseLogs()

Packback\Lti1p3\ServiceRequest::getMaskResponseLogs ( )

◆ getMethod()

Packback\Lti1p3\ServiceRequest::getMethod ( )

◆ getPayload()

Packback\Lti1p3\ServiceRequest::getPayload ( )

◆ getUrl()

Packback\Lti1p3\ServiceRequest::getUrl ( )

◆ setAccept()

Packback\Lti1p3\ServiceRequest::setAccept ( string $accept)

◆ setAccessToken()

Packback\Lti1p3\ServiceRequest::setAccessToken ( string $accessToken)

◆ setBody()

Packback\Lti1p3\ServiceRequest::setBody ( string $body)

◆ setContentType()

Packback\Lti1p3\ServiceRequest::setContentType ( string $contentType)

◆ setMaskResponseLogs()

Packback\Lti1p3\ServiceRequest::setMaskResponseLogs ( bool $shouldMask)

◆ setPayload()

Packback\Lti1p3\ServiceRequest::setPayload ( array $payload)

◆ setUrl()

Packback\Lti1p3\ServiceRequest::setUrl ( string $url)

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