ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
UserIdsOfPositionAndOrgUnit.php
Go to the documentation of this file.
1 <?php
2 
20 
26 {
27  protected function run(array $params): array
28  {
29  $position_id = $params[self::POSITION_ID];
30  $orgu_id = $params[self::ORGU_REF_ID];
31 
32  return $this->assignmentRepo->getUsersByOrgUnitsAndPosition(
33  [$orgu_id],
34  $position_id
35  );
36  }
37 
38  public function getName(): string
39  {
40  return "getUserIdsOfPositionAndOrgUnit";
41  }
42 
43  protected function getAdditionalInputParams(): array
44  {
45  return array(
46  self::POSITION_ID => Base::TYPE_INT,
47  self::ORGU_REF_ID => Base::TYPE_INT,
48  );
49  }
50 
51  public function getOutputParams(): array
52  {
53  return array('usr_ids' => Base::TYPE_INT_ARRAY);
54  }
55 
56  public function getDocumentation(): string
57  {
58  return "Returns ids of users in a position of a given Org Unit";
59  }
60 }
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.