ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ExportFileManager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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)