|
MediaWiki master
|
Public Member Functions | |
| __construct (callable $listCallback, BagOStuff $cache, RepoGroup $repoGroup, TitleParser $titleParser, HookContainer $hookContainer) | |
| Do not call directly. | |
| isBadFile ( $name, ?LinkTarget $contextTitle=null) | |
| Determine if a file exists on the 'bad image list'. | |
Definition at line 13 of file BadFileLookup.php.
| MediaWiki\Page\File\BadFileLookup::__construct | ( | callable | $listCallback, |
| BagOStuff | $cache, | ||
| RepoGroup | $repoGroup, | ||
| TitleParser | $titleParser, | ||
| HookContainer | $hookContainer ) |
Do not call directly.
Use MediaWikiServices.
| callable | $listCallback | Callback that returns wikitext of a bad file list |
| BagOStuff | $cache | For caching parsed versions of the bad file list |
| RepoGroup | $repoGroup | |
| TitleParser | $titleParser | |
| HookContainer | $hookContainer |
Definition at line 34 of file BadFileLookup.php.
| MediaWiki\Page\File\BadFileLookup::isBadFile | ( | $name, | |
| ?LinkTarget | $contextTitle = null ) |
Determine if a file exists on the 'bad image list'.
The format of MediaWiki:Bad_image_list is as follows:
| string | $name | The file name to check |
| LinkTarget | null | $contextTitle | The page on which the file occurs, if known |
Definition at line 61 of file BadFileLookup.php.