ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
PositionIds.php
Go to the documentation of this file.
1 <?php
20 
22 
27 class PositionIds extends Base
28 {
29  protected function run(array $params): array
30  {
31  return ilOrgUnitPosition::getArray(null, 'id');
32  }
33 
34  public function getName(): string
35  {
36  return "getPositionIds";
37  }
38 
39  protected function getAdditionalInputParams(): array
40  {
41  return array();
42  }
43 
44  public function getOutputParams(): array
45  {
46  return array('position_ids' => Base::TYPE_INT_ARRAY);
47  }
48 
49  public function getDocumentation(): string
50  {
51  return "Returns an array of all existing position ids";
52  }
53 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getArray(?string $key=null, $values=null)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:33
getName()
Get the name of the method.
Definition: PositionIds.php:34
getDocumentation()
Get the documentation of this method.
Definition: PositionIds.php:49
getOutputParams()
Get the output parameters in the same format as the input parameters.
Definition: PositionIds.php:44