| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 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 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().
 Here is the caller graph for this function:
      
  | 
  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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilLTIConsumerResultService::handleRequest | ( | ) | 
Handle an incoming request from the LTI tool provider.
Definition at line 97 of file class.ilLTIConsumerResultService.php.
References $DIC, $token, checkSignature(), deleteResult(), 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 86 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 270 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 360 of file class.ilLTIConsumerResultService.php.
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 337 of file class.ilLTIConsumerResultService.php.
References $DIC, $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 177 of file class.ilLTIConsumerResultService.php.
References $response, ILIAS\UI\examples\Symbol\Glyph\Header\header(), 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 192 of file class.ilLTIConsumerResultService.php.
References $DIC, $response, 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().
 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 308 of file class.ilLTIConsumerResultService.php.
References ILIAS\UI\examples\Symbol\Glyph\Header\header().
Referenced by handleRequest().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Send an "unauthorized" response.
| string | null | $message | response message | 
Definition at line 323 of file class.ilLTIConsumerResultService.php.
References ILIAS\UI\examples\Symbol\Glyph\Header\header().
Referenced by handleRequest().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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().
 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 280 of file class.ilLTIConsumerResultService.php.
References $response, ILIAS\UI\examples\Symbol\Glyph\Header\header(), 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 81 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 71 of file class.ilLTIConsumerResultService.php.
References $mastery_score.
Referenced by readProperties().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 414 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 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.