38 $this->
addError(
"User does not exist");
39 } elseif (!$this->positionRepo->getSingle($position_id,
'id') instanceof
ilOrgUnitPosition) {
40 $this->
addError(
"Position does not exist");
42 $this->
addError(
"OrgUnit does not exist");
44 $assignment = $this->assignmentRepo->get(
$user_id, $position_id, $orgu_ref_id);
52 return "addUserToPositionInOrgUnit";
70 return "Adds a user to a position in a orgunit";
Class AddUserIdToPositionInOrgUnit.
getOutputParams()
Get the output parameters in the same format as the input parameters.
getAdditionalInputParams()
getName()
Get the name of the method.
getDocumentation()
Get the documentation of this method.
addError(string $message)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupType(int $id, bool $reference=false)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
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...