|
MediaWiki
REL1_20
|
Temporary b/c interface, collection of static functions. More...
Static Public Member Functions | |
| static | checkRevisionExistence ($title, $revid) |
| Checks if a revision still exists in the revision table. | |
| static | getChanges ($n, $o) |
| Gets an array of message keys describing the changes made to the visibility of the revision. | |
| static | getRelationType ($typeName) |
| Get DB field name for URL param... | |
Static Protected Member Functions | |
| static | checkItem ($desc, $field, $diff, $new, &$arr) |
| Checks for a change in the bitfield for a certain option and updates the provided array accordingly. | |
Temporary b/c interface, collection of static functions.
Definition at line 29 of file RevisionDeleter.php.
| static RevisionDeleter::checkItem | ( | $ | desc, |
| $ | field, | ||
| $ | diff, | ||
| $ | new, | ||
| &$ | arr | ||
| ) | [static, protected] |
Checks for a change in the bitfield for a certain option and updates the provided array accordingly.
| $desc | String: description to add to the array if the option was enabled / disabled. |
| $field | Integer: the bitmask describing the single option. |
| $diff | Integer: the xor of the old and new bitfields. |
| $new | Integer: the new bitfield |
| $arr | Array: the array to update. |
Definition at line 41 of file RevisionDeleter.php.
Referenced by getChanges().
| static RevisionDeleter::checkRevisionExistence | ( | $ | title, |
| $ | revid | ||
| ) | [static] |
| static RevisionDeleter::getChanges | ( | $ | n, |
| $ | o | ||
| ) | [static] |
Gets an array of message keys describing the changes made to the visibility of the revision.
If the resulting array is $arr, then $arr[0] will contain an array of keys describing the items that were hidden, $arr[1] will contain an array of keys describing the items that were unhidden, and $arr[2] will contain an array with a single message key, which can be one of "revdelete-restricted", "revdelete-unrestricted" indicating (un)suppression or null to indicate nothing in particular. You can turn the keys in $arr[0] and $arr[1] into message keys by appending -hid and and -unhid to the keys respectively.
| $n | Integer: the new bitfield. |
| $o | Integer: the old bitfield. |
Definition at line 65 of file RevisionDeleter.php.
References $n, checkItem(), Revision\DELETED_COMMENT, Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, and Revision\DELETED_USER.
| static RevisionDeleter::getRelationType | ( | $ | typeName | ) | [static] |
Get DB field name for URL param...
Future code for other things may also track other types of revision-specific changes.
Definition at line 90 of file RevisionDeleter.php.
References SpecialRevisionDelete\$allowedTypes, and SpecialRevisionDelete\$deprecatedTypeMap.
Referenced by PopulateLogSearch\doDBUpdates(), and SpecialRevisionDelete\getLogQueryCond().