Public Member Functions | |
| __construct () | |
| execute ($par) | |
| Default execute method Checks user permissions, calls the function given in mFunction. | |
Static Public Member Functions | |
| static | extractBitfield ($bitPars, $oldfield) |
| Put together a rev_deleted bitfield. | |
Public Attributes | |
| $skin | |
| Skin object. | |
| $submitClicked | |
| True if the submit button was clicked, and the form was posted. | |
| $ids | |
| Target ID list. | |
| $archiveName | |
| Archive name, for reviewing deleted files. | |
| $token | |
| Edit token for securing image views against XSS. | |
| $targetObj | |
| Title object for target parameter. | |
| $typeName | |
| Deletion type, may be revision, archive, oldimage, filearchive, logging. | |
| $checks | |
| Array of checkbox specs (message, name, deletion bits). | |
| $typeInfo | |
| Information about the current type. | |
| $list | |
| The RevDel_List object, storing the list of items to be deleted/undeleted. | |
Static Public Attributes | |
| static | $allowedTypes |
| Assorted information about each type, needed by the special page. | |
| static | $deprecatedTypeMap |
| Type map to support old log entries. | |
Protected Member Functions | |
| showConvenienceLinks () | |
| Show some useful links in the subtitle. | |
| getLogQueryCond () | |
| Get the condition used for fetching log snippets. | |
| tryShowFile ($archiveName) | |
| Show a deleted file version requested by the visitor. | |
| getList () | |
| Get the list object for this request. | |
| showForm () | |
| Show a list of items that we will operate on, and show a form with checkboxes which will allow the user to choose new visibility settings. | |
| addUsageText () | |
| Show some introductory text FIXME Wikimedia-specific policy text. | |
| buildCheckBoxes () | |
| submit ($request) | |
| UI entry point for form submission. | |
| success () | |
| Report that the submit operation succeeded. | |
| failure ($status) | |
| Report that the submit operation failed. | |
| extractBitParams ($request) | |
| Put together an array that contains -1, 0, or the *_deleted const for each bit. | |
| save ($bitfield, $reason, $title) | |
| Do the write operations. | |
Definition at line 10 of file SpecialRevisiondelete.php.
| SpecialRevisionDelete::__construct | ( | ) |
Definition at line 92 of file SpecialRevisiondelete.php.
| SpecialRevisionDelete::addUsageText | ( | ) | [protected] |
Show some introductory text FIXME Wikimedia-specific policy text.
Definition at line 428 of file SpecialRevisiondelete.php.
References $wgOut, and $wgUser.
Referenced by showForm().
| SpecialRevisionDelete::buildCheckBoxes | ( | ) | [protected] |
Definition at line 442 of file SpecialRevisiondelete.php.
References $list, $name, $wgRequest, Xml::checkLabel(), Revision::DELETED_RESTRICTED, extractBitfield(), extractBitParams(), getList(), Xml::radio(), Xml::tags(), wfMsg(), and wfMsgHtml().
Referenced by showForm().
| SpecialRevisionDelete::execute | ( | $ | par | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This may be overridden by subclasses.
Reimplemented from SpecialPage.
Definition at line 96 of file SpecialRevisiondelete.php.
References $ids, $wgOut, $wgRequest, $wgUser, Revision::DELETED_COMMENT, Revision::DELETED_RESTRICTED, Revision::DELETED_USER, getLogQueryCond(), LogPage::logName(), Revision::newFromId(), Title::newFromText(), SpecialPage::outputHeader(), SpecialPage::setHeaders(), showConvenienceLinks(), showForm(), LogEventsList::showLogExtract(), submit(), tryShowFile(), and wfReadOnly().
| static SpecialRevisionDelete::extractBitfield | ( | $ | bitPars, | |
| $ | oldfield | |||
| ) | [static] |
Put together a rev_deleted bitfield.
| $bitPars | array extractBitParams() params | |
| $oldfield | int current bitfield |
Definition at line 578 of file SpecialRevisiondelete.php.
Referenced by buildCheckBoxes(), and RevDel_List::setVisibility().
| SpecialRevisionDelete::extractBitParams | ( | $ | request | ) | [protected] |
Put together an array that contains -1, 0, or the *_deleted const for each bit.
| $request | WebRequest |
Definition at line 556 of file SpecialRevisiondelete.php.
References $name, and Revision::DELETED_RESTRICTED.
Referenced by buildCheckBoxes(), and submit().
| SpecialRevisionDelete::failure | ( | $ | status | ) | [protected] |
Report that the submit operation failed.
Definition at line 544 of file SpecialRevisiondelete.php.
References $wgOut, showForm(), and wfMsg().
Referenced by submit().
| SpecialRevisionDelete::getList | ( | ) | [protected] |
Get the list object for this request.
Definition at line 311 of file SpecialRevisiondelete.php.
Referenced by buildCheckBoxes(), getLogQueryCond(), save(), and showForm().
| SpecialRevisionDelete::getLogQueryCond | ( | ) | [protected] |
Get the condition used for fetching log snippets.
Definition at line 239 of file SpecialRevisiondelete.php.
References getList(), and RevisionDeleter::getRelationType().
Referenced by execute().
| SpecialRevisionDelete::save | ( | $ | bitfield, | |
| $ | reason, | |||
| $ | title | |||
| ) | [protected] |
Do the write operations.
Simple wrapper for RevDel_*ListsetVisibility().
Definition at line 594 of file SpecialRevisiondelete.php.
References getList().
Referenced by submit().
| SpecialRevisionDelete::showConvenienceLinks | ( | ) | [protected] |
Show some useful links in the subtitle.
Definition at line 201 of file SpecialRevisiondelete.php.
References $wgLang, $wgOut, $wgUser, SpecialPage::getTitleFor(), and wfMsgHtml().
Referenced by execute().
| SpecialRevisionDelete::showForm | ( | ) | [protected] |
Show a list of items that we will operate on, and show a form with checkboxes which will allow the user to choose new visibility settings.
Definition at line 323 of file SpecialRevisiondelete.php.
References $list, $out, $title, $wgLang, $wgOut, $wgUser, addUsageText(), buildCheckBoxes(), Xml::closeElement(), Xml::fieldset(), getList(), SpecialPage::getTitle(), Xml::hidden(), Xml::input(), Xml::label(), Xml::listDropDown(), Title::makeTitle(), Xml::openElement(), Xml::submitButton(), Xml::tags(), wfMsg(), wfMsgExt(), wfMsgForContent(), and wfMsgHtml().
| SpecialRevisionDelete::submit | ( | $ | request | ) | [protected] |
UI entry point for form submission.
| $request | WebRequest |
Definition at line 497 of file SpecialRevisiondelete.php.
References $wgOut, $wgUser, Revision::DELETED_RESTRICTED, extractBitParams(), failure(), save(), success(), and wfMsgForContent().
Referenced by execute().
| SpecialRevisionDelete::success | ( | ) | [protected] |
Report that the submit operation succeeded.
Definition at line 533 of file SpecialRevisiondelete.php.
References $wgOut, showForm(), and wfMsg().
Referenced by submit().
| SpecialRevisionDelete::tryShowFile | ( | $ | archiveName | ) | [protected] |
Show a deleted file version requested by the visitor.
TODO Mostly copied from Special:Undelete. Refactor.
Definition at line 253 of file SpecialRevisiondelete.php.
References $archiveName, $IP, $path, $wgLang, $wgOut, $wgRequest, $wgUser, File::DELETED_FILE, File::DELETED_RESTRICTED, SpecialPage::getTitle(), Xml::openElement(), RepoGroup::singleton(), Xml::submitButton(), wfMsg(), and wfStreamFile().
Referenced by execute().
SpecialRevisionDelete::$allowedTypes [static] |
Assorted information about each type, needed by the special page.
TODO Move some of this to the list class
Definition at line 45 of file SpecialRevisiondelete.php.
Referenced by RevisionDeleter::getRelationType().
| SpecialRevisionDelete::$archiveName |
Archive name, for reviewing deleted files.
Definition at line 21 of file SpecialRevisiondelete.php.
Referenced by tryShowFile().
| SpecialRevisionDelete::$checks |
Array of checkbox specs (message, name, deletion bits).
Definition at line 33 of file SpecialRevisiondelete.php.
SpecialRevisionDelete::$deprecatedTypeMap [static] |
Initial value:
array(
'oldid' => 'revision',
'artimestamp' => 'archive',
'oldimage' => 'oldimage',
'fileid' => 'filearchive',
'logid' => 'logging',
)
Definition at line 84 of file SpecialRevisiondelete.php.
Referenced by RevisionDeleter::getRelationType().
| SpecialRevisionDelete::$ids |
| SpecialRevisionDelete::$list |
The RevDel_List object, storing the list of items to be deleted/undeleted.
Definition at line 39 of file SpecialRevisiondelete.php.
Referenced by buildCheckBoxes(), and showForm().
| SpecialRevisionDelete::$skin |
| SpecialRevisionDelete::$submitClicked |
True if the submit button was clicked, and the form was posted.
Definition at line 15 of file SpecialRevisiondelete.php.
| SpecialRevisionDelete::$targetObj |
| SpecialRevisionDelete::$token |
Edit token for securing image views against XSS.
Definition at line 24 of file SpecialRevisiondelete.php.
| SpecialRevisionDelete::$typeInfo |
| SpecialRevisionDelete::$typeName |
Deletion type, may be revision, archive, oldimage, filearchive, logging.
Definition at line 30 of file SpecialRevisiondelete.php.
1.5.9