ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SuperiorPositionId.php
Go to the documentation of this file.
1 <?php
2 
20 
22 
27 class SuperiorPositionId extends Base
28 {
29  protected function run(array $params): int
30  {
31  return $this->positionRepo->getSingle(ilOrgUnitPosition::CORE_POSITION_SUPERIOR, 'core_identifier')->getId();
32  }
33 
34  public function getName(): string
35  {
36  return "getSuperiorPositionId";
37  }
38 
42  protected function getAdditionalInputParams(): array
43  {
44  return array();
45  }
46 
47  public function getOutputParams(): array
48  {
49  return array('position_id' => Base::TYPE_INT);
50  }
51 
52  public function getDocumentation(): string
53  {
54  return "Returns the id of the default position 'Superior'";
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.