ILIAS  release_8 Revision v8.24
class.ilPDFGenerationJob.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
27 private array $pages = [];
28 private ?string $filename;
29 private ?string $output_mode;
30
31 public function setFilename(string $filename): self
32 {
33 $this->filename = $filename;
34 return $this;
35 }
36
37 public function getFilename(): ?string
38 {
39 return $this->filename;
40 }
41
46 public function setPages(array $pages): self
47 {
48 $this->pages = $pages;
49 return $this;
50 }
51
55 public function getPages(): array
56 {
57 return $this->pages;
58 }
59
60 public function addPage(string $page): self
61 {
62 $this->pages[] = $page;
63 return $this;
64 }
65
66 public function flushPages(): self
67 {
68 $this->pages = [];
69 return $this;
70 }
71
72 public function setOutputMode(string $output_mode): self
73 {
74 $this->output_mode = $output_mode;
75 return $this;
76 }
77
78 public function getOutputMode(): ?string
79 {
80 return $this->output_mode;
81 }
82}
setFilename(string $filename)
setOutputMode(string $output_mode)