17        $writer->xmlStartTag(
"OrgUnits");
 
   18        foreach ($nodes as $orgu_ref_id) {
 
   25            $writer->xmlElement(
"external_id", 
null, $this->
getExternalId($orgu_ref_id));
 
   26            $writer->xmlElement(
"title", 
null, $orgu->getTitle());
 
   27            $writer->xmlElement(
"description", 
null, $orgu->getDescription());
 
   28            $writer->xmlEndTag(
"OrgUnit");
 
   30        $writer->xmlEndTag(
"OrgUnits");
 
   52        return "orgu_" . CLIENT_ID . 
"_" . $orgu_ref_id;
 
   62        $file_name = 
"org_unit_export_" . $orgu_ref_id;
 
   80        foreach ($nodes as $node) {
 
  109        $sub_dir = $ts . 
'__' . IL_INST_ID . 
'__' . 
"orgu" . 
'_' . $orgu_id . 
"";
 
  110        $new_file = $sub_dir . 
'.zip';
 
  112        $export_run_dir = $export_dir . 
"/" . $sub_dir;
 
  116        $writer->xmlDumpFile($export_run_dir . 
"/manifest.xml", 
false);
 
  119        ilUtil::zip($export_run_dir, $export_dir . 
"/" . $new_file);
 
  126        $exp->setExportType(
'xml');
 
  127        $exp->setFilename($new_file);
 
  131            $export_dir . 
"/" . $new_file,
 
  138            "directory" => $export_dir
 
  145        $tree = 
$DIC[
'tree'];
 
  146        $open = array($root_node_ref);
 
  148        while (count($open)) {
 
  151            foreach ($tree->getChildsByType(
$current, 
"orgu") as 
$new) {
 
  152                if (!in_array(
$new[
"child"], $closed) && !in_array(
$new[
"child"], $open)) {
 
  153                    $open[] = 
$new[
"child"];
 
  167        $tree = 
$DIC[
'tree'];
 
  168        $parent_ref = $tree->getParentId($orgu->getRefId());
 
  172            $ou_parent_id = 
"__ILIAS";
 
  175        $ref_id = $orgu->getRefId();
 
  176        $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