ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
UserIdsOfPosition.php
Go to the documentation of this file.
1<?php
2
20
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}
getDocumentation()
Get the documentation of this method.
getOutputParams()
Get the output parameters in the same format as the input parameters.
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...