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