Static Public Member Functions | |
static | getLogMessage ($count, $nbitfield, $obitfield, $isForLog=false) |
Gets a log message to describe the given revision visibility change. | |
static | getRelationType ($typeName) |
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. | |
static | getChanges ($n, $o) |
Gets an array describing the changes made to the visibilit of the revision. |
Definition at line 605 of file SpecialRevisiondelete.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 617 of file SpecialRevisiondelete.php.
Referenced by getChanges().
static RevisionDeleter::getChanges | ( | $ | n, | |
$ | o | |||
) | [static, protected] |
Gets an array describing the changes made to the visibilit of the revision.
If the resulting array is $arr, then $arr[0] will contain an array of strings describing the items that were hidden, $arr[2] will contain an array of strings describing the items that were unhidden, and $arr[3] will contain an array with a single string, which can be one of "applied restrictions to sysops", "removed restrictions from sysops", or null.
$n | Integer: the new bitfield. | |
$o | Integer: the old bitfield. |
Definition at line 635 of file SpecialRevisiondelete.php.
References $n, checkItem(), Revision::DELETED_COMMENT, Revision::DELETED_RESTRICTED, Revision::DELETED_TEXT, Revision::DELETED_USER, and wfMsgForContent().
Referenced by getLogMessage().
static RevisionDeleter::getLogMessage | ( | $ | count, | |
$ | nbitfield, | |||
$ | obitfield, | |||
$ | isForLog = false | |||
) | [static] |
Gets a log message to describe the given revision visibility change.
This message will be of the form "[hid {content, edit summary, username}]; [unhid {...}][applied restrictions to sysops] for $count revisions: $comment".
$count | Integer: The number of effected revisions. | |
$nbitfield | Integer: The new bitfield for the revision. | |
$obitfield | Integer: The old bitfield for the revision. | |
$isForLog | Boolean |
Definition at line 665 of file SpecialRevisiondelete.php.
References $msg, $s, $wgLang, getChanges(), wfMsgExt(), and wfMsgForContent().
static RevisionDeleter::getRelationType | ( | $ | typeName | ) | [static] |
Definition at line 688 of file SpecialRevisiondelete.php.
References SpecialRevisionDelete::$allowedTypes, and SpecialRevisionDelete::$deprecatedTypeMap.
Referenced by PopulateLogSearch::execute(), SpecialRevisionDelete::getLogQueryCond(), migrate_log_params(), and RevDel_List::updateLog().