ILIAS  release_8 Revision v8.24
UserIdsOfPositionAndOrgUnit.php
Go to the documentation of this file.
1<?php
20
22
28{
29 protected function run(array $params): array
30 {
31 $position_id = $params[self::POSITION_ID];
32 $orgu_id = $params[self::ORGU_REF_ID];
33
34 return ilOrgUnitUserAssignmentQueries::getInstance()->getUserIdsOfOrgUnitsInPosition(
35 array($orgu_id),
36 $position_id
37 );
38 }
39
40 public function getName(): string
41 {
42 return "getUserIdsOfPositionAndOrgUnit";
43 }
44
45 protected function getAdditionalInputParams(): array
46 {
47 return array(
48 self::POSITION_ID => Base::TYPE_INT,
49 self::ORGU_REF_ID => Base::TYPE_INT,
50 );
51 }
52
53 public function getOutputParams(): array
54 {
55 return array('usr_ids' => Base::TYPE_INT_ARRAY);
56 }
57
58 public function getDocumentation(): string
59 {
60 return "Returns ids of users in a position of a given Org Unit";
61 }
62}
getOutputParams()
Get the output parameters in the same format as the input parameters.
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
Definition: ltiregstart.php:33
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...