ILIAS  release_8 Revision v8.24
UploadedFileRevision.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
33{
35
40 {
41 $this->upload = $upload;
42 parent::__construct($identification);
44 $information->setTitle($upload->getName());
45 $information->setMimeType($upload->getMimeType());
46 $information->setSuffix(pathinfo($upload->getName(), PATHINFO_EXTENSION));
47 $information->setSize($upload->getSize());
48 $information->setCreationDate(new \DateTimeImmutable());
50 }
51
52
53 public function getUpload(): UploadResult
54 {
55 return $this->upload;
56 }
57}
setInformation(Information $information)
ILIAS ResourceStorage Information Information $information
ILIAS ResourceStorage Identification ResourceIdentification $identification
__construct(ResourceIdentification $identification, UploadResult $upload)
@inheritDoc
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...