MediaWiki
REL1_19
|
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 | getLogLinks ($title, $paramArray, $messages) |
Creates utility links for log entries. | |
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 12 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 24 of file RevisionDeleter.php.
Referenced by getChanges().
static RevisionDeleter::checkRevisionExistence | ( | $ | title, |
$ | revid | ||
) | [static] |
Checks if a revision still exists in the revision table.
If it doesn't, returns the corresponding ar_timestamp field so that this key can be used instead.
$title | Title |
$revid |
Definition at line 94 of file RevisionDeleter.php.
References $dbr, $title, and wfGetDB().
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 48 of file RevisionDeleter.php.
References $n, checkItem(), Revision\DELETED_COMMENT, Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, and Revision\DELETED_USER.
Referenced by DeleteLogFormatter\getMessageParameters().
static RevisionDeleter::getLogLinks | ( | $ | title, |
$ | paramArray, | ||
$ | messages | ||
) | [static] |
Creates utility links for log entries.
$title | Title |
$paramArray | Array |
$messages |
Definition at line 119 of file RevisionDeleter.php.
References $messages, $title, $wgLang, SpecialPage\getTitleFor(), Linker\linkKnown(), and wfMsg().
Referenced by LogEventsList\logActionLinks().
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 73 of file RevisionDeleter.php.
References SpecialRevisionDelete\$allowedTypes, and SpecialRevisionDelete\$deprecatedTypeMap.
Referenced by PopulateLogSearch\doDBUpdates(), and SpecialRevisionDelete\getLogQueryCond().