ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
SuperiorPositionId.php
Go to the documentation of this file.
1 <?php
2 
21 
23 
28 class SuperiorPositionId extends Base
29 {
30  protected function run(array $params): int
31  {
32  return $this->positionRepo->getSingle(ilOrgUnitPosition::CORE_POSITION_SUPERIOR, 'core_identifier')->getId();
33  }
34 
35  public function getName(): string
36  {
37  return "getSuperiorPositionId";
38  }
39 
43  protected function getAdditionalInputParams(): array
44  {
45  return array();
46  }
47 
48  public function getOutputParams(): array
49  {
50  return array('position_id' => Base::TYPE_INT);
51  }
52 
53  public function getDocumentation(): string
54  {
55  return "Returns the id of the default position 'Superior'";
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.