ILIAS  release_7 Revision v7.30-3-g800a261c036
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->setSuffix(pathinfo($result->getName(), PATHINFO_EXTENSION));
34  $information->setSize($result->getSize());
35  $information->setCreationDate(new \DateTimeImmutable());
37  }
38 
39 
43  public function getUpload() : UploadResult
44  {
45  return $this->upload;
46  }
47 }
setInformation(Information $information)
$result
__construct(Container $dic, ilPlugin $plugin)
__construct(ResourceIdentification $identification, UploadResult $result)