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