21 require_once(
'./webservice/soap/classes/class.ilSoapAdministration.php');
22 require_once(
'./Services/WebServices/SOAP/classes/class.ilSoapPluginException.php');
42 public const SID =
'sid';
82 if (!isset($params[
$i])) {
84 throw new ilSoapPluginException(
"Request is missing at least one of the following parameters: $names");
91 return 'urn:' . ilOrgUnitSOAPServicesPlugin::PLUGIN_NAME;
100 self::SID => self::TYPE_STRING,
106 abstract protected function run(array
$params);
111 $session_id = (isset($params[0])) ? $params[0] :
'';
112 $this->
init($session_id);
117 $this->
addError(
'Permission denied');
120 $clean_params = array();
123 $clean_params[
$key] = $params[
$i];
127 return $this->
run($clean_params);
141 private function init(
string $session_id): void
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
execute(array $params)
Execute the business logic for this SOAP method (when a SOAP request hits the endpoint defined by the...
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
addError(string $message)
raiseError(string $a_message, $a_code)
getServiceUse()
Get the service use, e.g.
getInputParams()
Get the input parameters.
checkSession(string $sid)
initIliasAndCheckSession(string $session_id)
Use this method at the beginning of your execute() method to check if the provided session ID is vali...
checkParameters(array $params)
Check that all input parameters are present when executing the soap method.
getServiceStyle()
Get the service style, e.g.
getServiceNamespace()
Get the namespace of the service where this method belongs to.
getAdditionalInputParams()