83         $this->omit_header = $a_val;
   104         $this->target_dir_relative = $a_rel;
   105         $this->target_dir_absolute = $a_abs;
   118                 "Inflating with gzip is not supported",
   124                 "Inflating with zlib (compress/uncompress) is not supported",
   136             "obj_id" => 
"il_" . 
IL_INST_ID . 
"_file_" . $this->file->getId(),
   137             "version" => $this->file->getVersion(),
   138             "max_version" => $this->file->getMaxVersion(),
   139             "size" => $this->file->getFileSize(),
   140             "type" => $this->file->getFileType(),
   141             "action" => $this->file->getAction()
   145         $this->
xmlElement(
"Filename", null, $this->file->getFileName());
   147         $this->
xmlElement(
"Title", null, $this->file->getTitle());
   148         $this->
xmlElement(
"Description", null, $this->file->getDescription());
   149         $this->
xmlElement(
"Rating", null, (
int) $this->file->hasRating());
   151         $versions = $this->file->getVersions();
   153         if ($versions !== []) {
   158                     "version" => $version[
"version"],
   159                     "max_version" => $version[
"max_version"],
   160                     "date" => strtotime($version[
"date"]),
   161                     "usr_id" => 
"il_" . 
IL_INST_ID . 
"_usr_" . $version[
"user_id"],
   162                     "action" => $version[
"action"],
   163                     "rollback_version" => $version[
"rollback_version"],
   164                     "rollback_user_id" => $version[
"rollback_user_id"]
   169                 if ($this->attachFileContents !== 0) {
   170                     $filename = $this->file->getFile($version[
"version"]);
   174                             $attribs [
"mode"] = 
"COPY";
   175                             $content = 
"/" . $version[
"version"] . 
"_" . $this->file->getFileName();
   176                             copy(
$filename, $this->target_dir_absolute . $content);
   177                             $content = $this->target_dir_relative . $content;
   180                             $attribs [
'mode'] = 
"REST";
   182                             $content = $fs->storeFileForRest(base64_encode(@file_get_contents(
$filename)));
   186                             $content = @file_get_contents(
$filename);
   187                             $attribs [
"mode"] = 
"PLAIN";
   189                                 $attribs [
"mode"] = 
"ZLIB";
   190                                 $content = @gzcompress($content, 9);
   192                                 $attribs [
"mode"] = 
"GZIP";
   193                                 $content = @gzencode($content, 9);
   195                             $content = base64_encode($content);
   200                 $this->
xmlElement(
"Version", $attribs, $content);
   221                 "<!DOCTYPE File PUBLIC \"-//ILIAS//DTD FileAdministration//EN\" \"" . ILIAS_HTTP_PATH . 
"/components/ILIAS/Export/xml/ilias_file_3_8.dtd\">" 
static int $CONTENT_ATTACH_GZIP_ENCODED
 
setOmitHeader($a_val)
Set omit header. 
 
setAttachFileContents(int $attachFileContents)
set attachment content mode 
 
xmlSetGenCmt(string $genCmt)
Sets generated comment. 
 
getOmitHeader()
Get omit header. 
 
xmlEndTag(string $tag)
Writes an endtag. 
 
xmlSetDtdDef(string $dtdDef)
Sets dtd definition. 
 
string $target_dir_absolute
 
static int $CONTENT_ATTACH_ENCODED
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
xmlHeader()
Writes xml header. 
 
ilObjFile $file
Exercise Object. 
 
string $target_dir_relative
 
static int $CONTENT_ATTACH_COPY
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static int $CONTENT_ATTACH_REST
 
static int $ID_DEFLATE_METHOD_MISMATCH
 
__construct(Container $dic, ilPlugin $plugin)
 
static int $CONTENT_ATTACH_ZLIB_ENCODED
 
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag. 
 
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content) 
 
static int $CONTENT_ATTACH_NO
 
xmlDumpMem(bool $format=true)
Returns xml document from memory. 
 
setFileTargetDirectories(?string $a_rel, ?string $a_abs)
Set file target directories.