You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
981 B
35 lines
981 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
/**
|
|
* Class ImsLtiReadServiceResponse
|
|
*/
|
|
class ImsLtiServiceReadResponse extends ImsLtiServiceResponse
|
|
{
|
|
/**
|
|
* ImsLtiServiceReadResponse constructor.
|
|
*
|
|
* @param ImsLtiServiceResponseStatus $statusInfo
|
|
* @param mixed|null $bodyParam
|
|
*/
|
|
public function __construct(ImsLtiServiceResponseStatus $statusInfo, $bodyParam = null)
|
|
{
|
|
$statusInfo->setOperationRefIdentifier('readResult');
|
|
|
|
parent::__construct($statusInfo, $bodyParam);
|
|
}
|
|
|
|
/**
|
|
* @param SimpleXMLElement $xmlBody
|
|
*/
|
|
protected function generateBody(SimpleXMLElement $xmlBody)
|
|
{
|
|
$resultResponse = $xmlBody->addChild('readResultResponse');
|
|
|
|
$xmlResultScore = $resultResponse->addChild('result')
|
|
->addChild('resultScore');
|
|
|
|
$xmlResultScore->addChild('language', 'en');
|
|
$xmlResultScore->addChild('textString', $this->bodyParams);
|
|
}
|
|
}
|
|
|