34 $position_id = $params[self::POSITION_ID];
36 $orgu_ref_id = $params[self::ORGU_REF_ID];
39 $this->
addError(
"User does not exist");
40 } elseif (!$this->positionRepo->getSingle($position_id,
'id') instanceof
ilOrgUnitPosition) {
41 $this->
addError(
"Position does not exist");
43 $this->
addError(
"OrgUnit does not exist");
45 $assignment = $this->assignmentRepo->get(
$user_id, $position_id, $orgu_ref_id);
53 return "addUserToPositionInOrgUnit";
71 return "Adds a user to a position in a orgunit";
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class AddUserIdToPositionInOrgUnit.
getAdditionalInputParams()
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
addError(string $message)
getDocumentation()
Get the documentation of this method.
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
getOutputParams()
Get the output parameters in the same format as the input parameters.
getName()
Get the name of the method.
static _lookupType(int $id, bool $reference=false)