33         $position_id = $params[self::POSITION_ID];
    34         $user_id = $params[self::USR_ID];
    35         $orgu_ref_id = $params[self::ORGU_REF_ID];
    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";
 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)