ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
UploadedFileRevision.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
8 
14 class UploadedFileRevision extends FileRevision implements Revision
15 {
16 
20  private $upload;
21 
22 
27  {
28  $this->upload = $result;
29  parent::__construct($identification);
31  $information->setTitle($result->getName());
32  $information->setMimeType($result->getMimeType());
33  $information->setSize($result->getSize());
34  $information->setCreationDate(new \DateTimeImmutable());
36  }
37 
38 
42  public function getUpload() : UploadResult
43  {
44  return $this->upload;
45  }
46 }
$result
__construct(ResourceIdentification $identification, UploadResult $result)
setInformation(Information $information)
__construct(Container $dic, ilPlugin $plugin)