39         $position_id = $params[self::POSITION_ID];
    41         $orgu_ref_id = $params[self::ORGU_REF_ID];
    46         if (!$this->positionRepo->getSingle($position_id, 
'id') instanceof 
ilOrgUnitPosition) {
    52             $assignment = $this->assignmentRepo->find(
$user_id, $position_id, $orgu_ref_id);
    54                 $this->assignmentRepo->delete($assignment);
    56                 $this->
addError(
"No assignment found");
    68         return "removeUserFromPositionInOrgUnit";
    86         return "Removes a user from a position in a orgunit";
 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
 
Class AddUserIdToPositionInOrgUnit. 
 
addError(string $message)
 
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data 
 
getDocumentation()
Get the documentation of this method. 
 
getOutputParams()
Get the output parameters in the same format as the input parameters. 
 
static _lookupType(int $id, bool $reference=false)
 
getAdditionalInputParams()