1 | <?php |
||
28 | trait PdfLetterTrait |
||
29 | { |
||
30 | use AbstractRecordTrait; |
||
31 | use HasMediaTrait; |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getName() |
||
40 | |||
41 | /** |
||
42 | * @return bool |
||
43 | */ |
||
44 | public function hasFile() |
||
50 | |||
51 | /** |
||
52 | * @return bool|Media |
||
53 | */ |
||
54 | 1 | public function getFile() |
|
63 | |||
64 | /** |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function delete() |
||
74 | |||
75 | public function deleteLetters() |
||
79 | |||
80 | public function downloadExample() |
||
88 | |||
89 | /** |
||
90 | * @return AbstractRecordTrait |
||
91 | */ |
||
92 | abstract public function getModelExample(); |
||
93 | |||
94 | /** |
||
95 | * @param AbstractRecordTrait $model |
||
96 | */ |
||
97 | public function download($model) |
||
104 | |||
105 | public function downloadBlank() |
||
122 | |||
123 | /** |
||
124 | * @param $model |
||
125 | * @param $output |
||
126 | * @return bool|Fpdi|TCPDF |
||
127 | */ |
||
128 | 1 | public function generateFile($model, $output = null) |
|
148 | |||
149 | /** |
||
150 | * @param AbstractRecordTrait $model |
||
151 | * @return FPDI|TCPDF |
||
152 | */ |
||
153 | 1 | public function generatePdfObj($model) |
|
166 | |||
167 | /** |
||
168 | * @param $pdf |
||
169 | * @param $model |
||
170 | */ |
||
171 | 1 | protected function addFieldsToPDF($pdf, $model) |
|
180 | |||
181 | /** |
||
182 | * @return Fpdi\Tcpdf\Fpdi|TCPDF |
||
183 | * @throws Fpdi\PdfParser\CrossReference\CrossReferenceException |
||
184 | * @throws Fpdi\PdfParser\Filter\FilterException |
||
185 | * @throws Fpdi\PdfParser\PdfParserException |
||
186 | * @throws Fpdi\PdfParser\Type\PdfTypeException |
||
187 | * @throws Fpdi\PdfReader\PdfReaderException |
||
188 | */ |
||
189 | 1 | public function generateNewPdfObj() |
|
206 | |||
207 | /** |
||
208 | * @param mixed ...$params |
||
209 | * @return Fpdi\Tcpdf\Fpdi |
||
210 | */ |
||
211 | 2 | public static function newPdfBuilder(...$params) |
|
220 | |||
221 | /** |
||
222 | * @return AbstractRecordTrait |
||
223 | */ |
||
224 | public function getItem() |
||
230 | |||
231 | /** |
||
232 | * @return AbstractRecordTrait |
||
233 | */ |
||
234 | abstract public function getItemsManager(); |
||
235 | |||
236 | /** |
||
237 | * @return string |
||
238 | */ |
||
239 | 1 | protected function getFileNameDefault() |
|
243 | |||
244 | /** |
||
245 | * @param FPDI|TCPDF $pdf |
||
246 | */ |
||
247 | protected function pdfDrawGuidelines($pdf) |
||
267 | |||
268 | /** @noinspection PhpUnusedParameterInspection |
||
269 | * @param $model |
||
270 | * @return string |
||
271 | */ |
||
272 | 1 | protected function getFileNameFromModel($model) |
|
276 | |||
277 | /** |
||
278 | * @param UploadedFile $uploadedFile |
||
279 | * @return string|boolean |
||
280 | */ |
||
281 | public function uploadFromRequest($uploadedFile) |
||
303 | |||
304 | /** |
||
305 | * @param MediaRepository $mediaRepository |
||
306 | * @return MediaRepository |
||
307 | */ |
||
308 | 1 | protected function hydrateMediaRepositoryCustom($mediaRepository) |
|
314 | } |
||
315 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.