ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
EmployeePositionId.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_EMPLOYEE, 'core_identifier')->getId();
32 }
33
34 public function getName(): string
35 {
36 return "getEmployeePositionId";
37 }
38
39 protected function getAdditionalInputParams(): array
40 {
41 return array();
42 }
43
44 public function getOutputParams(): array
45 {
46 return array('position_id' => Base::TYPE_INT);
47 }
48
49 public function getDocumentation(): string
50 {
51 return "Returns the id of the default position 'Employee'";
52 }
53}
getOutputParams()
Get the output parameters in the same format as the input parameters.
getDocumentation()
Get the documentation of this method.
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...