ILIAS  release_7 Revision v7.30-3-g800a261c036
OrgUnitTree.php
Go to the documentation of this file.
1<?php
2
4
6
12class OrgUnitTree extends Base
13{
14 const ORGU_REF_ID = 'orgu_ref_id';
15 const ORG_UNIT_TREE = 'OrgUnitTree';
16
17
23 protected function run(array $params)
24 {
25 $orgu_ref_id = $params[self::ORGU_REF_ID];
26
27 $orgu_exporter = new ilOrgUnitExporter();
28
29 $writer = $orgu_exporter->simpleExport($orgu_ref_id);
30
31 return $writer->xmlFormatData($writer->xmlStr);
32 }
33
34
38 public function getName()
39 {
40 return "getOrgUnitsSimpleXML";
41 }
42
43
47 protected function getAdditionalInputParams()
48 {
49 return array(
50 self::ORGU_REF_ID => Base::TYPE_INT,
51 );
52 }
53
54
58 public function getOutputParams()
59 {
60 return array(self::ORG_UNIT_TREE => Base::TYPE_STRING);
61 }
62
63
67 public function getDocumentation()
68 {
69 return "Returns the ILIAS Organisational Units (SimpleXML)";
70 }
71}
An exception for terminatinating execution or to throw for unit testing.
getOutputParams()
Get the output parameters in the same format as the input parameters.array
Definition: OrgUnitTree.php:58
getDocumentation()
Get the documentation of this method.string
Definition: OrgUnitTree.php:67
Class ilOrgUnitExporter.