|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilLTIConsumerResultService: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 25 of file class.ilLTIConsumerResultService.php.
|
private |
Check the reqest signature.
Definition at line 360 of file class.ilLTIConsumerResultService.php.
References Vendor\Package\$e, $server, and $store.
Referenced by handleRequest().
Here is the caller graph for this function:
|
protected |
Delete a stored result.
Definition at line 210 of file class.ilLTIConsumerResultService.php.
References $response, loadResponse(), ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, and ilLPStatus\writeStatus().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIConsumerResultService::getAvailability | ( | ) |
Definition at line 67 of file class.ilLTIConsumerResultService.php.
References $availability.
| ilLTIConsumerResultService::getMasteryScore | ( | ) |
Definition at line 57 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
Referenced by replaceResult().
Here is the caller graph for this function:| ilLTIConsumerResultService::handleRequest | ( | ) |
Handle an incoming request from the LTI tool provider.
Definition at line 88 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().
Here is the call graph for this function:| ilLTIConsumerResultService::isAvailable | ( | ) |
Definition at line 77 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest().
Here is the caller graph for this function:
|
protected |
Load the XML template for the response.
| string | file name |
Definition at line 239 of file class.ilLTIConsumerResultService.php.
Referenced by deleteResult(), readResult(), replaceResult(), respondUnknown(), and respondUnsupported().
Here is the caller graph for this function:
|
private |
Read the LTI Consumer object fields.
Definition at line 329 of file class.ilLTIConsumerResultService.php.
References $DIC, $query, $res, and fields.
Referenced by handleRequest().
Here is the caller graph for this function:| ilLTIConsumerResultService::readProperties | ( | int | $a_obj_id | ) |
Read the LTI Consumer object properties.
Definition at line 306 of file class.ilLTIConsumerResultService.php.
References $DIC, $query, $res, setAvailability(), and setMasteryScore().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read a stored result.
Definition at line 150 of file class.ilLTIConsumerResultService.php.
References $response, and loadResponse().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Replace a stored result.
Definition at line 165 of file class.ilLTIConsumerResultService.php.
References $response, $result, getMasteryScore(), if, ILIAS\Repository\int(), loadResponse(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, ilLTIConsumerResult\save(), and ilLPStatus\writeStatus().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Send a "bad request" response.
Definition at line 277 of file class.ilLTIConsumerResultService.php.
References $message.
Referenced by handleRequest().
Here is the caller graph for this function:
|
protected |
Send an "unauthorized" response.
| string | null | $message | response message |
Definition at line 292 of file class.ilLTIConsumerResultService.php.
References $message.
Referenced by handleRequest().
Here is the caller graph for this function:
|
protected |
Send a "unknown operation" response.
Definition at line 263 of file class.ilLTIConsumerResultService.php.
References $response, and loadResponse().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Send a response that the operation is not supported This depends on the status of the object.
Definition at line 249 of file class.ilLTIConsumerResultService.php.
References $response, and loadResponse().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIConsumerResultService::setAvailability | ( | int | $availability | ) |
Definition at line 72 of file class.ilLTIConsumerResultService.php.
References $availability.
Referenced by readProperties().
Here is the caller graph for this function:| ilLTIConsumerResultService::setMasteryScore | ( | float | $mastery_score | ) |
Definition at line 62 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
Referenced by readProperties().
Here is the caller graph for this function:
|
protected |
Definition at line 378 of file class.ilLTIConsumerResultService.php.
References ilLPStatusWrapper\_updateStatus().
Referenced by handleRequest().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 35 of file class.ilLTIConsumerResultService.php.
Referenced by getAvailability(), and setAvailability().
|
protected |
Definition at line 45 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 40 of file class.ilLTIConsumerResultService.php.
Referenced by getMasteryScore(), and setMasteryScore().
|
protected |
Definition at line 50 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 54 of file class.ilLTIConsumerResultService.php.
|
protected |
Definition at line 30 of file class.ilLTIConsumerResultService.php.
Referenced by handleRequest(), and replaceResult().