ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
UploadedFileRevision.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
32 class UploadedFileRevision extends FileRevision implements Revision
33 {
38  {
39  parent::__construct($identification);
41  $information->setTitle($this->upload->getName());
42  $information->setMimeType($this->upload->getMimeType());
43  $information->setSuffix(pathinfo($this->upload->getName(), PATHINFO_EXTENSION));
44  $information->setSize($this->upload->getSize());
45  $information->setCreationDate(new \DateTimeImmutable());
47  }
48 
49 
50  public function getUpload(): UploadResult
51  {
52  return $this->upload;
53  }
54 }
setInformation(Information $information)
__construct(ResourceIdentification $identification, private UploadResult $upload)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)