18        $writer->xmlStartTag(
"OrgUnits");
 
   19        foreach ($nodes as $orgu_ref_id) {
 
   26            $writer->xmlElement(
"external_id", 
null, $this->
getExternalId($orgu_ref_id));
 
   27            $writer->xmlElement(
"title", 
null, $orgu->getTitle());
 
   28            $writer->xmlElement(
"description", 
null, $orgu->getDescription());
 
   29            $writer->xmlEndTag(
"OrgUnit");
 
   31        $writer->xmlEndTag(
"OrgUnits");
 
   57        return "orgu_" . 
CLIENT_ID . 
"_" . $orgu_ref_id;
 
   67        $file_name = 
"org_unit_export_" . $orgu_ref_id;
 
   69        $worksheet->addSheet(
'org_units');
 
   73        $worksheet->setCell($row, 0, 
"ou_id");
 
   74        $worksheet->setCell($row, 1, 
"ou_id_type");
 
   75        $worksheet->setCell($row, 2, 
"ou_parent_id");
 
   76        $worksheet->setCell($row, 3, 
"ou_parent_id_type");
 
   77        $worksheet->setCell($row, 4, 
"reference_id");
 
   78        $worksheet->setCell($row, 5, 
"title");
 
   79        $worksheet->setCell($row, 6, 
"description");
 
   80        $worksheet->setCell($row, 7, 
"action");
 
   85        foreach ($nodes as $node) {
 
   92            $worksheet->setCell($row, 0, $attrs[
"ou_id"]);
 
   93            $worksheet->setCell($row, 1, $attrs[
"ou_id_type"]);
 
   94            $worksheet->setCell($row, 2, $attrs[
"ou_parent_id"]);
 
   95            $worksheet->setCell($row, 3, $attrs[
"ou_parent_id_type"]);
 
   96            $worksheet->setCell($row, 4, $orgu->getRefId());
 
   97            $worksheet->setCell($row, 5, $orgu->getTitle());
 
   98            $worksheet->setCell($row, 6, $orgu->getDescription());
 
   99            $worksheet->setCell($row, 7, 
"create");
 
  101        $worksheet->sendToClient($file_name);
 
  115        $sub_dir = $ts . 
'__' . 
IL_INST_ID . 
'__' . 
"orgu" . 
'_' . $orgu_id . 
"";
 
  116        $new_file = $sub_dir . 
'.zip';
 
  118        $export_run_dir = $export_dir . 
"/" . $sub_dir;
 
  122        $writer->xmlDumpFile($export_run_dir . 
"/manifest.xml", 
false);
 
  125        ilUtil::zip($export_run_dir, $export_dir . 
"/" . $new_file);
 
  132        $exp->setExportType(
'xml');
 
  133        $exp->setFilename($new_file);
 
  137            $export_dir . 
"/" . $new_file,
 
  144            "directory" => $export_dir,
 
  152        $tree = 
$DIC[
'tree'];
 
  153        $open = array($root_node_ref);
 
  155        while (count($open)) {
 
  156            $current = array_shift($open);
 
  157            $closed[] = $current;
 
  158            foreach ($tree->getChildsByType($current, 
"orgu") as $new) {
 
  159                if (!in_array($new[
"child"], $closed) && !in_array($new[
"child"], $open)) {
 
  160                    $open[] = $new[
"child"];
 
  177        $tree = 
$DIC[
'tree'];
 
  178        $parent_ref = $tree->getParentId($orgu->getRefId());
 
  182            $ou_parent_id = 
"__ILIAS";
 
  185        $ref_id = $orgu->getRefId();
 
  186        $attr = array(
"ou_id" => $this->
getExternalId($ref_id), 
"ou_id_type" => 
"external_id", 
"ou_parent_id" => $ou_parent_id, 
"ou_parent_id_type" => 
"external_id", 
"action" => 
"create");
 
An exception for terminatinating execution or to throw for unit testing.
Class for category export.
@classDescription Date and time handling
@classDescription Stores information of creation date and versions of export files
static _getExportDirectory($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="")
Get export directory for an repository object.
static _createExportDirectory($a_obj_id, $a_export_type="xml", $a_obj_type="")
static _lookupObjectId($a_ref_id)
lookup object id
getStructure($root_node_ref)
sendAndCreateSimpleExportFile()
getExternalId($orgu_ref_id)
simpleExportExcel($orgu_ref_id)
buildExternalId($orgu_ref_id)
simpleExport($orgu_ref_id)
getAttributesForOrgu($orgu)
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
const ILIAS_VERSION_NUMERIC