47 if (null === static::$instances[$user_id]) {
49 static::$instances[
$user_id] = $org_unit_user_repository->getOrgUnitUser($user_id);
65 if (null === static::$instances[$user_id]) {
87 $this->superiors[] = $org_unit_user;
96 $this->org_unit_positions[] = $org_unit_position;
108 if (count($this->superiors) == 0) {
119 $org_unit_user_repository->loadSuperiors([$this->user_id]);
130 if (count($this->org_unit_positions) == 0) {
146 $org_unit_user_repository->loadPositions([$this->user_id]);
__construct(int $user_id, string $login, string $email, string $second_email)
static getInstanceById(int $user_id)
Class ilOrgUnitUserRepository.
static getInstance(int $user_id, string $login, string $email, string $second_email)
addPositions(ilOrgUnitPosition $org_unit_position)
setSecondEmail(string $second_email)
addSuperior(ilOrgUnitUser $org_unit_user)