RevisionDeleter Class Reference
[SpecialPage]

Temporary b/c interface, collection of static functions. More...

List of all members.

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.


Detailed Description

Temporary b/c interface, collection of static functions.

Definition at line 605 of file SpecialRevisiondelete.php.


Member Function Documentation

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.

Parameters:
$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.

Parameters:
$n Integer: the new bitfield.
$o Integer: the old bitfield.
Returns:
An array as described above.

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".

Parameters:
$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]


The documentation for this class was generated from the following file:

Generated on Sat Apr 30 22:57:48 2011 for MediaWiki by  doxygen 1.5.9