ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Public Member Functions | |
getMasteryScore () | |
setMasteryScore (float $mastery_score) | |
getAvailability () | |
setAvailability (int $availability) | |
isAvailable () | |
__construct () | |
Constructor: general initialisations. More... | |
handleRequest () | |
Handle an incoming request from the LTI tool provider. More... | |
Protected Member Functions | |
readResult ($request) | |
Read a stored result. More... | |
replaceResult ($request) | |
Replace a stored result. More... | |
deleteResult ($request) | |
Delete a stored result. More... | |
loadResponse ($a_name) | |
Load the XML template for the response. More... | |
respondUnsupported () | |
Send a response that the operation is not supported This depends on the status of the object. More... | |
respondUnknown () | |
Send a "unknown operation" response. More... | |
respondBadRequest ($message=null) | |
Send a "bad request" response. More... | |
respondUnauthorized ($message=null) | |
Send an "unauthorized" response. More... | |
updateLP () | |
Protected Attributes | |
$result = null | |
$availability = 0 | |
$mastery_score = 1 | |
$fields = array() | |
$message_ref_id = '' | |
$operation = '' | |
Private Member Functions | |
readProperties ($a_obj_id) | |
Read the LTI Consumer object properties. More... | |
readFields ($a_obj_id) | |
Read the LTI Consumer object fields. More... | |
checkSignature ($a_key, $a_secret) | |
Check the reqest signature. More... | |
Definition at line 14 of file class.ilLTIConsumerResultService.php.
ilLTIConsumerResultService::__construct | ( | ) |
Constructor: general initialisations.
Definition at line 100 of file class.ilLTIConsumerResultService.php.
|
private |
Check the reqest signature.
Definition at line 392 of file class.ilLTIConsumerResultService.php.
References Vendor\Package\$e, $server, $store, fields, and OAuthRequest\from_request().
Referenced by handleRequest().
|
protected |
Delete a stored result.
SimpleXMLElement | $request |
Definition at line 233 of file class.ilLTIConsumerResultService.php.
References $response, and loadResponse().
Referenced by handleRequest().
ilLTIConsumerResultService::getAvailability | ( | ) |
Definition at line 71 of file class.ilLTIConsumerResultService.php.
References $availability.
ilLTIConsumerResultService::getMasteryScore | ( | ) |
Definition at line 55 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
ilLTIConsumerResultService::handleRequest | ( | ) |
Handle an incoming request from the LTI tool provider.
Definition at line 107 of file class.ilLTIConsumerResultService.php.
References $result, $token, $xml, checkSignature(), deleteResult(), fields, ilLTIConsumerResult\getByKeys(), ilCmiXapiAuthToken\getInstanceByToken(), isAvailable(), readFields(), readProperties(), readResult(), replaceResult(), respondBadRequest(), respondUnauthorized(), respondUnknown(), respondUnsupported(), and updateLP().
ilLTIConsumerResultService::isAvailable | ( | ) |
Definition at line 87 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest().
|
protected |
Load the XML template for the response.
string | file name |
Definition at line 262 of file class.ilLTIConsumerResultService.php.
Referenced by deleteResult(), readResult(), replaceResult(), respondUnknown(), and respondUnsupported().
|
private |
Read the LTI Consumer object fields.
integer | $a_obj_id |
Definition at line 361 of file class.ilLTIConsumerResultService.php.
References $DIC, $query, $res, and fields.
Referenced by handleRequest().
|
private |
Read the LTI Consumer object properties.
integer | $a_obj_id |
Definition at line 336 of file class.ilLTIConsumerResultService.php.
References $DIC, $query, $res, setAvailability(), and setMasteryScore().
Referenced by handleRequest().
|
protected |
Read a stored result.
SimpleXMLElement | $request |
Definition at line 170 of file class.ilLTIConsumerResultService.php.
References $response, and loadResponse().
Referenced by handleRequest().
|
protected |
Replace a stored result.
SimpleXMLElement | $request |
Definition at line 186 of file class.ilLTIConsumerResultService.php.
References $response, $result, if, and loadResponse().
Referenced by handleRequest().
|
protected |
Send a "bad request" response.
string | response message |
Definition at line 302 of file class.ilLTIConsumerResultService.php.
References $message.
Referenced by handleRequest().
|
protected |
Send an "unauthorized" response.
string | response message |
Definition at line 319 of file class.ilLTIConsumerResultService.php.
References $message.
Referenced by handleRequest().
|
protected |
Send a "unknown operation" response.
Definition at line 286 of file class.ilLTIConsumerResultService.php.
References $response, and loadResponse().
Referenced by handleRequest().
|
protected |
Send a response that the operation is not supported This depends on the status of the object.
Definition at line 272 of file class.ilLTIConsumerResultService.php.
References $response, and loadResponse().
Referenced by handleRequest().
ilLTIConsumerResultService::setAvailability | ( | int | $availability | ) |
int | $availability |
Definition at line 79 of file class.ilLTIConsumerResultService.php.
References $availability.
Referenced by readProperties().
ilLTIConsumerResultService::setMasteryScore | ( | float | $mastery_score | ) |
float | $mastery_score |
Definition at line 63 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
Referenced by readProperties().
|
protected |
Definition at line 413 of file class.ilLTIConsumerResultService.php.
References ilLPStatusWrapper\_updateStatus().
Referenced by handleRequest().
|
protected |
Definition at line 30 of file class.ilLTIConsumerResultService.php.
Referenced by getAvailability(), and setAvailability().
|
protected |
Definition at line 40 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 35 of file class.ilLTIConsumerResultService.php.
Referenced by getMasteryScore(), and setMasteryScore().
|
protected |
Definition at line 45 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 49 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 20 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest(), and replaceResult().