1 | <?php |
||
22 | class ThumbnailGenerator |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $numberOfTraversedFiles = 0; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $numberOfProcessedFiles = 0; |
||
34 | |||
35 | /** |
||
36 | * @var int |
||
37 | */ |
||
38 | protected $numberOfMissingFiles = 0; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $configuration = []; |
||
44 | |||
45 | /** |
||
46 | * @var ResourceStorage |
||
47 | */ |
||
48 | protected $storage = null; |
||
49 | |||
50 | /** |
||
51 | * @var Selection |
||
52 | */ |
||
53 | protected $selection = null; |
||
54 | |||
55 | /** |
||
56 | * @var array |
||
57 | */ |
||
58 | protected $resultSet = []; |
||
59 | |||
60 | /** |
||
61 | * @var array |
||
62 | */ |
||
63 | protected $newProcessedFileIdentifiers = []; |
||
64 | |||
65 | /** |
||
66 | * Internal variable |
||
67 | * |
||
68 | * @var int |
||
69 | */ |
||
70 | protected $lastInsertedProcessedFile = 0; |
||
71 | |||
72 | /** |
||
73 | * Generate |
||
74 | * |
||
75 | * @param int $limit |
||
76 | * @param int $offset |
||
77 | * @return void |
||
78 | * @throws \TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException |
||
79 | * @throws \InvalidArgumentException |
||
80 | * @throws \Fab\Media\Exception\InvalidKeyInArrayException |
||
81 | * @throws \Fab\Media\Exception\MissingTcaConfigurationException |
||
82 | */ |
||
83 | public function generate($limit = 0, $offset = 0) |
||
130 | |||
131 | /** |
||
132 | * @return int |
||
133 | */ |
||
134 | protected function isNewProcessedFile() |
||
144 | |||
145 | /** |
||
146 | * @return int |
||
147 | */ |
||
148 | public function getNumberOfTraversedFiles() |
||
152 | |||
153 | /** |
||
154 | * @return int |
||
155 | */ |
||
156 | public function getNumberOfProcessedFiles() |
||
160 | |||
161 | /** |
||
162 | * @return int |
||
163 | */ |
||
164 | public function getTotalNumberOfFiles() |
||
174 | |||
175 | /** |
||
176 | * @return array |
||
177 | */ |
||
178 | public function getResultSet() |
||
182 | |||
183 | /** |
||
184 | * @return array |
||
185 | */ |
||
186 | public function getNewProcessedFileIdentifiers() |
||
190 | |||
191 | /** |
||
192 | * @return int |
||
193 | */ |
||
194 | public function getNumberOfMissingFiles() |
||
198 | |||
199 | /** |
||
200 | * @param \TYPO3\CMS\Core\Resource\ResourceStorage $storage |
||
201 | * @return $this |
||
202 | */ |
||
203 | public function setStorage($storage) |
||
208 | |||
209 | /** |
||
210 | * @param \Fab\Vidi\Domain\Model\Selection $selection |
||
211 | * @return $this |
||
212 | */ |
||
213 | public function setSelection($selection) |
||
218 | |||
219 | /** |
||
220 | * @param array $configuration |
||
221 | * @return $this |
||
222 | */ |
||
223 | public function setConfiguration($configuration) |
||
228 | |||
229 | /** |
||
230 | * @param File $file |
||
231 | * @return object|ThumbnailService |
||
232 | */ |
||
233 | protected function getThumbnailService(File $file) |
||
237 | |||
238 | /** |
||
239 | * @return void |
||
240 | */ |
||
241 | protected function incrementNumberOfTraversedFiles() |
||
245 | |||
246 | /** |
||
247 | * @return void |
||
248 | */ |
||
249 | protected function incrementNumberOfMissingFiles() |
||
253 | |||
254 | /** |
||
255 | * @return void |
||
256 | */ |
||
257 | protected function incrementNumberOfProcessedFiles() |
||
261 | |||
262 | /** |
||
263 | * @return object|DataService |
||
264 | */ |
||
265 | protected function getDataService(): DataService |
||
269 | } |
||
270 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.