46            $this->export_dir .= 
"_" . $a_obj_id;
 
   61            if (
$data[
'type'] != 
'file') {
 
   64            $file_parts = explode(
'.', 
$name);
 
   65            if (!is_numeric($file_parts[0]) or (strcmp(
'xml', $file_parts[1]) != 0)) {
 
   68            $file_info[$file_parts[0]][
'size'] = 
$data[
'size'];
 
   69            $file_info[$file_parts[0]][
'date'] = $file_parts[0];
 
   71            if (
$xml = simplexml_load_file($this->export_dir . 
'/' . 
$name)) {
 
   73                foreach (
$xml->xpath(
'Record/Title') as 
$title) {
 
   76                $file_info[$file_parts[0]][
'name'] = 
$records;
 
   79        return $file_info ? $file_info : array();
 
   90        if (!@is_dir($this->export_dir)) {
 
   93        foreach (
ilUtil::getDir($this->export_dir) as $file_name => $file_data) {
 
   94            $files[$file_name] = $file_data;
 
  112        if (!$fp = @fopen($this->export_dir . 
'/' . time() . 
'.xml', 
'w+')) {
 
  113            $ilLog->write(__METHOD__ . 
': Cannot open file ' . $this->export_dir . 
'/' . time() . 
'.xml');
 
  115            require_once 
'./Services/Exceptions/classes/class.ilException.php';
 
  116            throw new ilException(
'Cannot write export file.');
 
  119        @fwrite($fp, $a_xml);
 
  135        if (!unlink($this->export_dir . 
'/' . $a_timest . 
'.xml')) {
 
  136            $ilLog->write(__METHOD__ . 
': Cannot delete file ' . $this->export_dir . 
'/' . $a_timest . 
'.xml');
 
  155        if (!@file_exists($this->export_dir . 
'/' . $a_file_basename . 
'.xml')) {
 
  156            $ilLog->write(__METHOD__ . 
': Cannot find file ' . $this->export_dir . 
'/' . $a_file_basename . 
'.xml');
 
  159        return $this->export_dir . 
'/' . $a_file_basename . 
'.xml';
 
  170        if (!@is_dir($this->export_dir)) {
 
An exception for terminatinating execution or to throw for unit testing.
create($a_xml)
Create new export file from xml string.
readFilesInfo()
Read files info.
deleteByFileId($a_timest)
Delete by file id.
getAbsolutePathByFileId($a_file_basename)
Get absolut path by file id.
__construct($a_obj_id=null)
Constructor.
init()
init export directory
Base class for ILIAS Exception handling.
static getDataDir()
get data directory (outside webspace)
static getDir($a_dir, $a_rec=false, $a_sub_dir="")
get directory
static makeDirParents($a_dir)
Create a new directory and all parent directories.