Exemplo n.º 1
0
 /**
  * Get a list of subitems of a repository resource, that implement
  * the export. Includes also information on last export file.
  */
 static function _getValidExportSubItems($a_ref_id)
 {
     global $tree;
     $valid_items = array();
     $sub_items = $tree->getSubTree($tree->getNodeData($a_ref_id));
     foreach ($sub_items as $sub_item) {
         if (in_array($sub_item["type"], self::$export_implementer)) {
             $valid_items[] = array("type" => $sub_item["type"], "title" => $sub_item["title"], "ref_id" => $sub_item["child"], "obj_id" => $sub_item["obj_id"], "timestamp" => ilExport::_getLastExportFileDate($sub_item["obj_id"], "xml", $sub_item["type"]));
         }
     }
     return $valid_items;
 }