33         $this->tree = $DIC[
'tree'];
    41         $writer->xmlStartTag(
"OrgUnits");
    42         foreach ($nodes as $node_ref_id) {
    48             $writer->xmlStartTag(
"OrgUnit", $attributes);
    49             $writer->xmlElement(
"external_id", null, $this->
getExternalId($node_ref_id));
    50             $writer->xmlElement(
"title", null, $orgu->getTitle());
    51             $writer->xmlElement(
"description", null, $orgu->getDescription());
    52             $writer->xmlEndTag(
"OrgUnit");
    54         $writer->xmlEndTag(
"OrgUnits");
    68         return "orgu_" . 
CLIENT_ID . 
"_" . $orgu_ref_id;
    74         $file_name = 
"org_unit_export_" . $orgu_ref_id;
    76         $worksheet->addSheet(
'org_units');
    80         $worksheet->setCell($row, 0, 
"ou_id");
    81         $worksheet->setCell($row, 1, 
"ou_id_type");
    82         $worksheet->setCell($row, 2, 
"ou_parent_id");
    83         $worksheet->setCell($row, 3, 
"ou_parent_id_type");
    84         $worksheet->setCell($row, 4, 
"reference_id");
    85         $worksheet->setCell($row, 5, 
"title");
    86         $worksheet->setCell($row, 6, 
"description");
    87         $worksheet->setCell($row, 7, 
"action");
    92         foreach ($nodes as $node) {
    99             $worksheet->setCell($row, 0, $attrs[
"ou_id"]);
   100             $worksheet->setCell($row, 1, $attrs[
"ou_id_type"]);
   101             $worksheet->setCell($row, 2, $attrs[
"ou_parent_id"]);
   102             $worksheet->setCell($row, 3, $attrs[
"ou_parent_id_type"]);
   103             $worksheet->setCell($row, 4, $orgu->getRefId());
   104             $worksheet->setCell($row, 5, $orgu->getTitle());
   105             $worksheet->setCell($row, 6, $orgu->getDescription());
   106             $worksheet->setCell($row, 7, 
"create");
   108         $worksheet->sendToClient($file_name);
   121         $sub_dir = $ts . 
'__' . 
IL_INST_ID . 
'__' . 
"orgu" . 
'_' . $orgu_id . 
"";
   122         $new_file = $sub_dir . 
'.zip';
   124         $export_run_dir = $export_dir . 
"/" . $sub_dir;
   128         $writer->xmlDumpFile($export_run_dir . 
"/manifest.xml", 
false);
   138         $exp->setExportType(
'xml');
   139         $exp->setFilename($new_file);
   143             $export_dir . 
"/" . $new_file,
   150             "directory" => $export_dir,
   156         $open = array($root_node_ref);
   158         while (count($open)) {
   159             $current = array_shift($open);
   160             $closed[] = $current;
   161             foreach ($this->tree->getChildsByType($current, 
"orgu") as $new) {
   162                 if (in_array($new[
"child"], $closed, 
true) === 
false && in_array($new[
"child"], $open, 
true) === 
false) {
   163                     $open[] = $new[
"child"];
   173         $parent_ref = $this->tree->getParentId($orgu->
getRefId());
   177             $ou_parent_id = 
"__ILIAS";
   182                       "ou_id_type" => 
"external_id",
   183                       "ou_parent_id" => $ou_parent_id,
   184                       "ou_parent_id_type" => 
"external_id",
 
const ILIAS_VERSION_NUMERIC
 
getAttributesForOrgu(ilObjOrgUnit $orgu)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
simpleExport(int $orgu_ref_id)
 
static makeDirParents(string $a_dir)
Create a new directory and all parent directories. 
 
static _getExportDirectory(int $a_obj_id, string $a_type="xml", string $a_obj_type="", string $a_entity="")
Get export directory for an repository object. 
 
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
 
getExternalId(int $orgu_ref_id)
 
buildExternalId(int $orgu_ref_id)
 
static _createExportDirectory(int $a_obj_id, string $a_export_type="xml", string $a_obj_type="")
 
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupObjectId(int $ref_id)
 
getStructure(int $root_node_ref)
 
sendAndCreateSimpleExportFile()
 
static zip(string $a_dir, string $a_file, bool $compress_content=false)
 
simpleExportExcel(int $orgu_ref_id)