ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
OrgUnitTree.php
Go to the documentation of this file.
1 <?php
2 
21 
23 
28 class OrgUnitTree extends Base
29 {
30  public const ORGU_REF_ID = 'orgu_ref_id';
31  public const ORG_UNIT_TREE = 'OrgUnitTree';
32 
33  protected function run(array $params): string
34  {
35  $orgu_ref_id = $params[self::ORGU_REF_ID];
36 
37  $orgu_exporter = new ilOrgUnitExporter();
38 
39  return $orgu_exporter->simpleExport($orgu_ref_id)->xmlDumpMem(true);
40  }
41 
42  public function getName(): string
43  {
44  return "getOrgUnitsSimpleXML";
45  }
46 
47  protected function getAdditionalInputParams(): array
48  {
49  return array(
50  self::ORGU_REF_ID => Base::TYPE_INT,
51  );
52  }
53 
54  public function getOutputParams(): array
55  {
56  return array(self::ORG_UNIT_TREE => Base::TYPE_STRING);
57  }
58 
59  public function getDocumentation(): string
60  {
61  return "Returns the ILIAS Organisational Units (SimpleXML)";
62  }
63 }
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
getDocumentation()
Get the documentation of this method.
Definition: OrgUnitTree.php:59
getName()
Get the name of the method.
Definition: OrgUnitTree.php:42
getOutputParams()
Get the output parameters in the same format as the input parameters.
Definition: OrgUnitTree.php:54