Definition at line 13 of file BadFileLookup.php.
◆ __construct()
◆ buildBadFilesList()
MediaWiki\BadFileLookup::buildBadFilesList |
( |
string |
$list | ) |
|
|
private |
- Parameters
-
- Returns
- array<string,array<int,array<string,true>>>
Definition at line 104 of file BadFileLookup.php.
◆ isBadFile()
MediaWiki\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:
- Only list items (lines starting with "*") are considered
- The first link on a line must be a link to a bad file
- Any subsequent links on the same line are considered to be exceptions, i.e. articles where the file may occur inline.
- Parameters
-
string | $name | The file name to check |
LinkTarget | null | $contextTitle | The page on which the file occurs, if known |
- Returns
- bool
Definition at line 68 of file BadFileLookup.php.
References $file.
◆ $badFiles
array<string,array<int,array<string,true> > > null MediaWiki\BadFileLookup::$badFiles |
|
private |
◆ $cache
◆ $hookRunner
◆ $listCallback
callable MediaWiki\BadFileLookup::$listCallback |
|
private |
◆ $repoGroup
RepoGroup MediaWiki\BadFileLookup::$repoGroup |
|
private |
◆ $titleParser
The documentation for this class was generated from the following file: