/** * Get last export file information * * @param int $a_obj_id object id * @param string $a_type export type ("xml", "html", ...), default "xml" * @param string $a_obj_type object type (optional, if not given, type is looked up) */ static function _getLastExportFileInformation($a_obj_id, $a_type = "", $a_obj_type = "") { $files = ilExport::_getExportFiles($a_obj_id, $a_type, $a_obj_type); if (is_array($files)) { $files = ilUtil::sortArray($files, "timestamp", "desc"); return $files[0]; } return false; }
/** * Get export files */ function getExportFiles() { $types = array(); foreach ($this->parent_obj->getFormats() as $f) { $types[] = $f["key"]; } include_once "./Services/Export/classes/class.ilExport.php"; $files = ilExport::_getExportFiles($this->obj->getId(), $types, $this->obj->getType()); return $files; }
/** * Get export files */ function getExportFiles() { include_once "./Services/Export/classes/class.ilExport.php"; return ilExport::_getExportFiles($this->getId(), array("xml", "html"), $this->getType()); }