ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
UserIdsOfPosition.php
Go to the documentation of this file.
1 <?php
2 
20 
25 class UserIdsOfPosition extends Base
26 {
30  protected function run(array $params): array
31  {
32  $position_id = $params[self::POSITION_ID];
33 
34  return $this->assignmentRepo->getUsersByPosition($position_id);
35  }
36 
37  public function getName(): string
38  {
39  return "getUserIdsOfPosition";
40  }
41 
42  protected function getAdditionalInputParams(): array
43  {
44  return array(self::POSITION_ID => Base::TYPE_INT);
45  }
46 
47  public function getOutputParams(): array
48  {
49  return array(self::USR_IDS => Base::TYPE_INT_ARRAY);
50  }
51 
52  public function getDocumentation(): string
53  {
54  return "Returns ids of users in a position";
55  }
56 }
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.
getDocumentation()
Get the documentation of this method.