parent
efdd5ded9b
commit
2527e87f87
@ -0,0 +1,31 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Class ImsLtiServiceUnsupportedRequest. |
||||
*/ |
||||
class ImsLtiServiceUnsupportedRequest extends ImsLtiServiceRequest |
||||
{ |
||||
/** |
||||
* ImsLtiDeleteServiceRequest constructor. |
||||
* |
||||
* @param SimpleXMLElement $xml |
||||
* @param string $name |
||||
*/ |
||||
public function __construct(SimpleXMLElement $xml, $name) |
||||
{ |
||||
parent::__construct($xml); |
||||
|
||||
$this->responseType = $name; |
||||
} |
||||
|
||||
protected function processBody() |
||||
{ |
||||
$this->statusInfo |
||||
->setSeverity(ImsLtiServiceResponseStatus::SEVERITY_STATUS) |
||||
->setCodeMajor(ImsLtiServiceResponseStatus::CODEMAJOR_UNSUPPORTED) |
||||
->setDescription( |
||||
$this->responseType.' is not supported' |
||||
); |
||||
} |
||||
} |
||||
@ -0,0 +1,28 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Class ImsLtiServiceUnsupportedResponse. |
||||
*/ |
||||
class ImsLtiServiceUnsupportedResponse extends ImsLtiServiceResponse |
||||
{ |
||||
/** |
||||
* ImsLtiServiceUnsupportedResponse constructor. |
||||
* |
||||
* @param ImsLtiServiceResponseStatus $statusInfo |
||||
* @param string $type |
||||
*/ |
||||
public function __construct(ImsLtiServiceResponseStatus $statusInfo, $type) |
||||
{ |
||||
$statusInfo->setOperationRefIdentifier($type); |
||||
|
||||
parent::__construct($statusInfo); |
||||
} |
||||
|
||||
/** |
||||
* @param SimpleXMLElement $xmlBody |
||||
*/ |
||||
protected function generateBody(SimpleXMLElement $xmlBody) |
||||
{ |
||||
} |
||||
} |
||||
Loading…
Reference in new issue