MediaWiki
REL1_24
|
Maintenance script that checks for articles to fix after adding/deleting namespaces. More...
Public Member Functions | |
__construct () | |
execute () | |
Protected Attributes | |
DatabaseBase | $db |
Private Member Functions | |
checkAll ($fix, $suffix= '') | |
checkNamespace ($ns, $name, $fix, $suffix= '') | |
checkPrefix ($key, $prefix, $fix, $suffix= '') | |
getConflicts ($ns, $name) | |
Find pages in mainspace that have a prefix of the new namespace so we know titles that will need migrating. | |
getInterwikiList () | |
Get the interwiki list. | |
reportConflict ($row, $suffix) | |
Report any conflicts we find. | |
resolveConflict ($row, $resolvable, $suffix) | |
Resolve any conflicts. | |
resolveConflictOn ($row, $table, $prefix) | |
Resolve a given conflict. |
Maintenance script that checks for articles to fix after adding/deleting namespaces.
Definition at line 35 of file namespaceDupes.php.
Reimplemented from Maintenance.
Definition at line 41 of file namespaceDupes.php.
References Maintenance\addOption().
NamespaceConflictChecker::checkAll | ( | $ | fix, |
$ | suffix = '' |
||
) | [private] |
bool | $fix | Whether or not to fix broken entries |
string | $suffix | Suffix to append to renamed articles |
Definition at line 79 of file namespaceDupes.php.
Referenced by execute().
NamespaceConflictChecker::checkNamespace | ( | $ | ns, |
$ | name, | ||
$ | fix, | ||
$ | suffix = '' |
||
) | [private] |
int | $ns | A namespace id |
string | $name | |
bool | $fix | Whether to fix broken entries |
string | $suffix | Suffix to append to renamed articles |
Definition at line 167 of file namespaceDupes.php.
NamespaceConflictChecker::checkPrefix | ( | $ | key, |
$ | prefix, | ||
$ | fix, | ||
$ | suffix = '' |
||
) | [private] |
int | $key | |
string | $prefix | |
bool | $fix | |
string | $suffix |
Definition at line 194 of file namespaceDupes.php.
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 51 of file namespaceDupes.php.
References $key, $retval, checkAll(), checkPrefix(), Maintenance\getOption(), Maintenance\hasOption(), Maintenance\output(), and wfGetDB().
NamespaceConflictChecker::getConflicts | ( | $ | ns, |
$ | name | ||
) | [private] |
Find pages in mainspace that have a prefix of the new namespace so we know titles that will need migrating.
int | $ns | Namespace id (id for new namespace?) |
string | $name | Prefix that is being made a namespace |
Definition at line 209 of file namespaceDupes.php.
NamespaceConflictChecker::getInterwikiList | ( | ) | [private] |
NamespaceConflictChecker::reportConflict | ( | $ | row, |
$ | suffix | ||
) | [private] |
Report any conflicts we find.
stdClass | $row | |
string | $suffix |
Definition at line 242 of file namespaceDupes.php.
NamespaceConflictChecker::resolveConflict | ( | $ | row, |
$ | resolvable, | ||
$ | suffix | ||
) | [private] |
Resolve any conflicts.
stClass | $row | Row from the page table to fix |
bool | $resolvable | |
string | $suffix | Suffix to append to the fixed page |
Definition at line 282 of file namespaceDupes.php.
NamespaceConflictChecker::resolveConflictOn | ( | $ | row, |
$ | table, | ||
$ | prefix | ||
) | [private] |
Resolve a given conflict.
stdClass | $row | Row from the old broken entry |
string | $table | Table to update |
string | $prefix | Prefix for column name, like page or ar |
Definition at line 316 of file namespaceDupes.php.
DatabaseBase NamespaceConflictChecker::$db [protected] |
Definition at line 39 of file namespaceDupes.php.