ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
getMasteryScore () | |
setMasteryScore (float $mastery_score) | |
getAvailability () | |
setAvailability (int $availability) | |
isAvailable () | |
handleRequest () | |
Handle an incoming request from the LTI tool provider. More... | |
readProperties (int $a_obj_id) | |
Read the LTI Consumer object properties. More... | |
Protected Member Functions | |
readResult (\SimpleXMLElement $request) | |
Read a stored result. More... | |
replaceResult (\SimpleXMLElement $request) | |
Replace a stored result. More... | |
deleteResult (\SimpleXMLElement $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 (?string $message=null) | |
Send a "bad request" response. More... | |
respondUnauthorized (?string $message=null) | |
Send an "unauthorized" response. More... | |
updateLP () | |
Protected Attributes | |
ilLTIConsumerResult | $result = null |
int | $availability = 0 |
float | $mastery_score = 1 |
array | $fields = array() |
string | $message_ref_id = '' |
string | $operation = '' |
Private Member Functions | |
readFields (int $a_obj_id) | |
Read the LTI Consumer object fields. More... | |
checkSignature (string $a_key, string $a_secret) | |
Check the reqest signature. More... | |
Definition at line 34 of file class.ilLTIConsumerResultService.php.
|
private |
Check the reqest signature.
Definition at line 391 of file class.ilLTIConsumerResultService.php.
References Vendor\Package\$e, and $server.
Referenced by handleRequest().
|
protected |
Delete a stored result.
Definition at line 241 of file class.ilLTIConsumerResultService.php.
References $response, ILIAS\UI\examples\Symbol\Glyph\Header\header(), loadResponse(), ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, and ilLPStatus\writeStatus().
Referenced by handleRequest().
ilLTIConsumerResultService::getAvailability | ( | ) |
Definition at line 76 of file class.ilLTIConsumerResultService.php.
References $availability.
ilLTIConsumerResultService::getMasteryScore | ( | ) |
Definition at line 66 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
Referenced by replaceResult().
ilLTIConsumerResultService::handleRequest | ( | ) |
Handle an incoming request from the LTI tool provider.
Definition at line 97 of file class.ilLTIConsumerResultService.php.
References $DIC, $result, $token, checkSignature(), deleteResult(), ilLTIConsumerResult\getByKeys(), ilCmiXapiAuthToken\getInstanceByToken(), isAvailable(), readFields(), readProperties(), readResult(), replaceResult(), respondBadRequest(), respondUnauthorized(), respondUnknown(), respondUnsupported(), and updateLP().
ilLTIConsumerResultService::isAvailable | ( | ) |
Definition at line 86 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest().
|
protected |
Load the XML template for the response.
string | file name |
Definition at line 270 of file class.ilLTIConsumerResultService.php.
Referenced by deleteResult(), readResult(), replaceResult(), respondUnknown(), and respondUnsupported().
|
private |
Read the LTI Consumer object fields.
Definition at line 360 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest().
ilLTIConsumerResultService::readProperties | ( | int | $a_obj_id | ) |
Read the LTI Consumer object properties.
Definition at line 337 of file class.ilLTIConsumerResultService.php.
References $DIC, $res, setAvailability(), and setMasteryScore().
Referenced by handleRequest().
|
protected |
Read a stored result.
Definition at line 177 of file class.ilLTIConsumerResultService.php.
References $response, ILIAS\UI\examples\Symbol\Glyph\Header\header(), and loadResponse().
Referenced by handleRequest().
|
protected |
Replace a stored result.
Definition at line 192 of file class.ilLTIConsumerResultService.php.
References $DIC, $response, $result, getMasteryScore(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), ILIAS\Repository\int(), loadResponse(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, ilLTIConsumerResult\save(), and ilLPStatus\writeStatus().
Referenced by handleRequest().
|
protected |
Send a "bad request" response.
Definition at line 308 of file class.ilLTIConsumerResultService.php.
References $message, and ILIAS\UI\examples\Symbol\Glyph\Header\header().
Referenced by handleRequest().
|
protected |
Send an "unauthorized" response.
string | null | $message | response message |
Definition at line 323 of file class.ilLTIConsumerResultService.php.
References $message, and ILIAS\UI\examples\Symbol\Glyph\Header\header().
Referenced by handleRequest().
|
protected |
Send a "unknown operation" response.
Definition at line 294 of file class.ilLTIConsumerResultService.php.
References $response, ILIAS\UI\examples\Symbol\Glyph\Header\header(), 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 280 of file class.ilLTIConsumerResultService.php.
References $response, ILIAS\UI\examples\Symbol\Glyph\Header\header(), and loadResponse().
Referenced by handleRequest().
ilLTIConsumerResultService::setAvailability | ( | int | $availability | ) |
Definition at line 81 of file class.ilLTIConsumerResultService.php.
References $availability.
Referenced by readProperties().
ilLTIConsumerResultService::setMasteryScore | ( | float | $mastery_score | ) |
Definition at line 71 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
Referenced by readProperties().
|
protected |
Definition at line 414 of file class.ilLTIConsumerResultService.php.
References ilLPStatusWrapper\_updateStatus().
Referenced by handleRequest().
|
protected |
Definition at line 44 of file class.ilLTIConsumerResultService.php.
Referenced by getAvailability(), and setAvailability().
|
protected |
Definition at line 54 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 49 of file class.ilLTIConsumerResultService.php.
Referenced by getMasteryScore(), and setMasteryScore().
|
protected |
Definition at line 59 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 63 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 39 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest(), and replaceResult().