3 declare(strict_types=1);
49 $v = unserialize($value, []);
51 $this->title = $v[self::ARRAY_KEY_TITLE] ??
'';
52 $this->filename = $v[self::ARRAY_KEY_FILENAME] ??
'';
53 $this->size = $v[self::ARRAY_KEY_SIZE] ?? 0;
54 $this->mime = $v[self::ARRAY_KEY_MIME] ??
'';
59 return parent::TYPE_FILE;
66 self::ARRAY_KEY_MIME => $this->
getMime(),
67 self::ARRAY_KEY_SIZE => $this->
getSize(),
68 self::ARRAY_KEY_TITLE => $this->
getTitle()
103 $clone = clone $this;
104 $clone->size =
$size;
114 $clone = clone $this;
__construct(int $id, int $question_id, int $subquestion_index, string $import_id, \DateTimeImmutable $last_update, string $type, string $value)
DateTimeImmutable $last_update
a suggested solution for file-contents
withFilename(string $filename)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...