ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SuperiorPositionId.php
Go to the documentation of this file.
1<?php
2
20
22
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}
getDocumentation()
Get the documentation of this method.
getOutputParams()
Get the output parameters in the same format as the input parameters.
Class ilOrgUnitPosition.
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...