ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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 28 of file class.ilLTIConsumerResultService.php.
|
private |
Check the reqest signature.
Definition at line 363 of file class.ilLTIConsumerResultService.php.
References Vendor\Package\$e, and $server.
Referenced by handleRequest().
|
protected |
Delete a stored result.
Definition at line 213 of file class.ilLTIConsumerResultService.php.
References $response, ILIAS\UI\examples\Symbol\Glyph\Header\header(), loadResponse(), ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, null, and ilLPStatus\writeStatus().
Referenced by handleRequest().
ilLTIConsumerResultService::getAvailability | ( | ) |
Definition at line 70 of file class.ilLTIConsumerResultService.php.
References $availability.
ilLTIConsumerResultService::getMasteryScore | ( | ) |
Definition at line 60 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 91 of file class.ilLTIConsumerResultService.php.
References $token, checkSignature(), deleteResult(), ilLTIConsumerResult\getByKeys(), ilCmiXapiAuthToken\getInstanceByToken(), isAvailable(), readFields(), readProperties(), readResult(), replaceResult(), respondBadRequest(), respondUnauthorized(), respondUnknown(), respondUnsupported(), and updateLP().
ilLTIConsumerResultService::isAvailable | ( | ) |
Definition at line 80 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest().
|
protected |
Load the XML template for the response.
string | file name |
Definition at line 242 of file class.ilLTIConsumerResultService.php.
Referenced by deleteResult(), readResult(), replaceResult(), respondUnknown(), and respondUnsupported().
|
private |
Read the LTI Consumer object fields.
Definition at line 332 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest().
ilLTIConsumerResultService::readProperties | ( | int | $a_obj_id | ) |
Read the LTI Consumer object properties.
Definition at line 309 of file class.ilLTIConsumerResultService.php.
References $DIC, $res, setAvailability(), and setMasteryScore().
Referenced by handleRequest().
|
protected |
Read a stored result.
Definition at line 153 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 168 of file class.ilLTIConsumerResultService.php.
References $response, getMasteryScore(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), if, 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 280 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 295 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 266 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 252 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 75 of file class.ilLTIConsumerResultService.php.
References $availability.
Referenced by readProperties().
ilLTIConsumerResultService::setMasteryScore | ( | float | $mastery_score | ) |
Definition at line 65 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
Referenced by readProperties().
|
protected |
Definition at line 381 of file class.ilLTIConsumerResultService.php.
References ilLPStatusWrapper\_updateStatus().
Referenced by handleRequest().
|
protected |
Definition at line 38 of file class.ilLTIConsumerResultService.php.
Referenced by getAvailability(), and setAvailability().
|
protected |
Definition at line 48 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 43 of file class.ilLTIConsumerResultService.php.
Referenced by getMasteryScore(), and setMasteryScore().
|
protected |
Definition at line 53 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 57 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 33 of file class.ilLTIConsumerResultService.php.