ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
UploadedFileRevision.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
33{
38 {
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)
@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...