ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStudyProgrammeMembershipSourceReaderOrgu.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
24{
25 public function __construct(
26 protected ilObjOrgUnitTree $orgu_tree,
27 protected OrgUnitUserAssignmentRepository $orgu_assignment_repo,
28 protected int $src_id,
29 protected bool $search_recursive,
30 protected ?int $exclude_id
31 ) {
32 }
33
37 public function getMemberIds(): array
38 {
39 $children[] = $this->src_id;
40 if ($this->search_recursive) {
41 $children = array_unique(array_merge($children, $this->orgu_tree->getAllChildren($this->src_id)));
42 }
43 return $this->orgu_assignment_repo->getUsersByOrgUnits($children);
44 }
45}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Provides adapters to read member-ids from a specific source.
__construct(protected ilObjOrgUnitTree $orgu_tree, protected OrgUnitUserAssignmentRepository $orgu_assignment_repo, protected int $src_id, protected bool $search_recursive, protected ?int $exclude_id)