21use ilOrgUnitSOAPServicesPlugin;
39 public const SID =
'sid';
80 for ($i = 0, $iMax = count($this->
getInputParams()); $i < $iMax; $i++) {
83 throw new ilSoapPluginException(
"Request is missing at least one of the following parameters: $names");
90 return 'urn:' . ilOrgUnitSOAPServicesPlugin::PLUGIN_NAME;
99 self::SID => self::TYPE_STRING,
111 $this->
init($session_id);
116 $this->
addError(
'Permission denied');
119 $clean_params = array();
122 $clean_params[$key] =
$params[$i];
126 return $this->
run($clean_params);
140 private function init(
string $session_id): void
144 if (!isset(
$_GET[
"wsdl"])) {
146 $this->positionRepo =
$dic[
"repo.Positions"];
147 $this->assignmentRepo =
$dic[
"repo.UserAssignments"];
addError(string $message)
ilOrgUnitUserAssignmentDBRepository $assignmentRepo
ilOrgUnitPositionDBRepository $positionRepo
initIliasAndCheckSession(string $session_id)
Use this method at the beginning of your execute() method to check if the provided session ID is vali...
getInputParams()
Get the input parameters.
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.
execute(array $params)
Execute the business logic for this SOAP method (when a SOAP request hits the endpoint defined by the...
getAdditionalInputParams()
getServiceUse()
Get the service use, e.g.
raiseError(string $a_message, $a_code)
checkSession(string $sid)
Class ilSoapPluginException.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...