ILIAS  release_7 Revision v7.30-3-g800a261c036
UploadedFileRevision.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
8
15{
16
20 private $upload;
21
22
27 {
28 $this->upload = $result;
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}
$result
An exception for terminatinating execution or to throw for unit testing.
setInformation(Information $information)
__construct(ResourceIdentification $identification, UploadResult $result)
@inheritDoc
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc