ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
UserIdsOfPositionAndOrgUnit.php
Go to the documentation of this file.
1 <?php
2 
21 
27 {
28  protected function run(array $params): array
29  {
30  $position_id = $params[self::POSITION_ID];
31  $orgu_id = $params[self::ORGU_REF_ID];
32 
33  return $this->assignmentRepo->getUsersByOrgUnitsAndPosition(
34  [$orgu_id],
35  $position_id
36  );
37  }
38 
39  public function getName(): string
40  {
41  return "getUserIdsOfPositionAndOrgUnit";
42  }
43 
44  protected function getAdditionalInputParams(): array
45  {
46  return array(
47  self::POSITION_ID => Base::TYPE_INT,
48  self::ORGU_REF_ID => Base::TYPE_INT,
49  );
50  }
51 
52  public function getOutputParams(): array
53  {
54  return array('usr_ids' => Base::TYPE_INT_ARRAY);
55  }
56 
57  public function getDocumentation(): string
58  {
59  return "Returns ids of users in a position of a given Org Unit";
60  }
61 }
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:31
getOutputParams()
Get the output parameters in the same format as the input parameters.