ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
PositionIds.php
Go to the documentation of this file.
1 <?php
2 
21 
23 
28 class PositionIds extends Base
29 {
30  protected function run(array $params): array
31  {
32  return $this->positionRepo->getArray(null, 'id');
33  }
34 
35  public function getName(): string
36  {
37  return "getPositionIds";
38  }
39 
40  protected function getAdditionalInputParams(): array
41  {
42  return array();
43  }
44 
45  public function getOutputParams(): array
46  {
47  return array('position_ids' => Base::TYPE_INT_ARRAY);
48  }
49 
50  public function getDocumentation(): string
51  {
52  return "Returns an array of all existing position ids";
53  }
54 }
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
getName()
Get the name of the method.
Definition: PositionIds.php:35
getDocumentation()
Get the documentation of this method.
Definition: PositionIds.php:50
getOutputParams()
Get the output parameters in the same format as the input parameters.
Definition: PositionIds.php:45