1 | <?php |
||
22 | class CacheService |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * Traverse all files and initialize cache values. |
||
27 | * |
||
28 | * @return int |
||
29 | */ |
||
30 | public function warmUp() |
||
63 | |||
64 | /** |
||
65 | * Clear all possible cache related to a file. |
||
66 | * This method is useful when replacing a file for instance. |
||
67 | * |
||
68 | * @param File $file |
||
69 | * @return void |
||
70 | */ |
||
71 | public function clearCache(File $file) |
||
77 | |||
78 | /** |
||
79 | * Remove all processed files that belong to the given File object. |
||
80 | * |
||
81 | * @param File $file |
||
82 | * @return void |
||
83 | */ |
||
84 | protected function flushProcessedFiles(File $file) |
||
101 | |||
102 | /** |
||
103 | * Return a processed file repository |
||
104 | * |
||
105 | * @return \TYPO3\CMS\Core\Resource\ProcessedFileRepository|object |
||
106 | */ |
||
107 | protected function getProcessedFileRepository() |
||
111 | |||
112 | /** |
||
113 | * Returns the file references. |
||
114 | * |
||
115 | * @param File $file |
||
116 | * @return void |
||
117 | */ |
||
118 | protected function clearCachePages($file) |
||
137 | |||
138 | /** |
||
139 | * Find all pages which contains file references to the given $file. |
||
140 | * |
||
141 | * @param File $file |
||
142 | * @return array |
||
143 | */ |
||
144 | protected function findPagesWithFileReferences($file) |
||
167 | |||
168 | /** |
||
169 | * Find all pages which have soft references to the given $file. |
||
170 | * |
||
171 | * @param File $file |
||
172 | * @return array |
||
173 | */ |
||
174 | protected function findPagesWithSoftReferences(File $file) |
||
203 | |||
204 | /** |
||
205 | * Get the WHERE clause for the enabled fields given a $tableName. |
||
206 | * |
||
207 | * @param string $tableName |
||
208 | * @return string |
||
209 | */ |
||
210 | protected function getWhereClauseForEnabledFields($tableName) |
||
221 | |||
222 | /** |
||
223 | * Returns whether the current mode is Frontend |
||
224 | * |
||
225 | * @return string |
||
226 | */ |
||
227 | protected function isFrontendMode() |
||
231 | |||
232 | /** |
||
233 | * Returns an instance of the page repository. |
||
234 | * |
||
235 | * @return \TYPO3\CMS\Frontend\Page\PageRepository |
||
236 | */ |
||
237 | protected function getPageRepository() |
||
241 | |||
242 | /** |
||
243 | * @param string $tableName |
||
244 | * @return object|QueryBuilder |
||
245 | */ |
||
246 | protected function getQueryBuilder($tableName): QueryBuilder |
||
252 | |||
253 | /** |
||
254 | * @return object|DataService |
||
255 | */ |
||
256 | protected function getDataService(): DataService |
||
260 | |||
261 | /** |
||
262 | * @return \Fab\Media\Resource\FileReferenceService|object |
||
263 | */ |
||
264 | protected function getFileReferenceService() |
||
268 | } |
||
269 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.