ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
UserIdsOfPosition.php
Go to the documentation of this file.
1 <?php
2 
21 
26 class UserIdsOfPosition extends Base
27 {
31  protected function run(array $params): array
32  {
33  $position_id = $params[self::POSITION_ID];
34 
35  return $this->assignmentRepo->getUsersByPosition($position_id);
36  }
37 
38  public function getName(): string
39  {
40  return "getUserIdsOfPosition";
41  }
42 
43  protected function getAdditionalInputParams(): array
44  {
45  return array(self::POSITION_ID => Base::TYPE_INT);
46  }
47 
48  public function getOutputParams(): array
49  {
50  return array(self::USR_IDS => Base::TYPE_INT_ARRAY);
51  }
52 
53  public function getDocumentation(): string
54  {
55  return "Returns ids of users in a position";
56  }
57 }
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.