ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ExportFileManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
28{
29 public function __construct(
30 protected DataService $data,
31 protected ExportFileDBRepository $repo
32 ) {
33 }
34
35 public function getLatestOfObjectIdAndType(int $object_id, string $type = ""): ?ExportFile
36 {
37 return $this->repo->getLatestOfObjectIdAndType($object_id, $type);
38 }
39
40 public function deliver(ExportFile $file): void
41 {
42 $this->repo->deliverFile($file->getRid());
43 }
44}
getLatestOfObjectIdAndType(int $object_id, string $type="")
__construct(protected DataService $data, protected ExportFileDBRepository $repo)