Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
Private Member Functions | |
secureOperation () | |
showFile ($key) | |
Show a deleted file version requested by the visitor. | |
showRevs () | |
This lets a user set restrictions for live and archived revisions. | |
showImages () | |
This lets a user set restrictions for archived images. | |
showLogItems () | |
This lets a user set restrictions for log items. | |
addUsageText () | |
buildCheckBoxes ($bitfields) | |
historyLine ($rev) | |
fileLine ($file) | |
archivedfileLine ($file) | |
logLine ($row) | |
fileUserTools ($file) | |
Generate a user tool link cluster if the current user is allowed to view it. | |
fileComment ($file) | |
Wrap and format the given file's comment block, if the current user is allowed to view it. | |
submit ($request) | |
success () | |
extractBitfield ($request) | |
Put together a rev_deleted bitfield from the submitted checkboxes. | |
save ($bitfield, $reason, $title) |
Definition at line 10 of file SpecialRevisiondelete.php.
SpecialRevisionDelete::__construct | ( | ) |
SpecialRevisionDelete::addUsageText | ( | ) | [private] |
Definition at line 541 of file SpecialRevisiondelete.php.
References $wgOut, and $wgUser.
Referenced by showImages(), showLogItems(), and showRevs().
SpecialRevisionDelete::archivedfileLine | ( | $ | file | ) | [private] |
ArchivedFile | $file |
Definition at line 645 of file SpecialRevisiondelete.php.
References $del, $file, $wgLang, File::DELETED_FILE, fileComment(), SpecialPage::getTitleFor(), wfMsg(), wfMsgExt(), and wfMsgHtml().
Referenced by showImages().
SpecialRevisionDelete::buildCheckBoxes | ( | $ | bitfields | ) | [private] |
int | $bitfields, aggregate bitfield of all the bitfields |
Definition at line 553 of file SpecialRevisiondelete.php.
References $name, Xml::checkLabel(), Revision::DELETED_RESTRICTED, Xml::tags(), and wfMsg().
Referenced by showImages(), showLogItems(), and showRevs().
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 17 of file SpecialRevisiondelete.php.
References $i, $wgOut, $wgRequest, $wgUser, File::DELETED_FILE, SpecialPage::file(), SpecialPage::getTitleFor(), LogPage::logName(), Revision::newFromId(), SpecialPage::outputHeader(), secureOperation(), SpecialPage::setHeaders(), showFile(), showImages(), LogEventsList::showLogExtract(), showLogItems(), showRevs(), RepoGroup::singleton(), submit(), wfArrayToCGI(), wfMsgHtml(), and wfReadOnly().
SpecialRevisionDelete::extractBitfield | ( | $ | request | ) | [private] |
Put together a rev_deleted bitfield from the submitted checkboxes.
WebRequest | $request |
Definition at line 798 of file SpecialRevisiondelete.php.
References $name.
Referenced by submit().
SpecialRevisionDelete::fileComment | ( | $ | file | ) | [private] |
Wrap and format the given file's comment block, if the current user is allowed to view it.
ArchivedFile | $file |
Definition at line 729 of file SpecialRevisiondelete.php.
References $file, File::DELETED_COMMENT, and wfMsgHtml().
Referenced by archivedfileLine(), and fileLine().
SpecialRevisionDelete::fileLine | ( | $ | file | ) | [private] |
File | $file |
Definition at line 609 of file SpecialRevisiondelete.php.
References $del, $file, $url, $wgLang, $wgTitle, File::DELETED_FILE, fileComment(), wfMsg(), wfMsgExt(), and wfMsgHtml().
Referenced by showImages().
SpecialRevisionDelete::fileUserTools | ( | $ | file | ) | [private] |
Generate a user tool link cluster if the current user is allowed to view it.
ArchivedFile | $file |
Definition at line 709 of file SpecialRevisiondelete.php.
References $file, Revision::DELETED_USER, and wfMsgHtml().
SpecialRevisionDelete::historyLine | ( | $ | rev | ) | [private] |
Revision | $rev |
Definition at line 570 of file SpecialRevisiondelete.php.
References $del, $wgLang, $wgUser, Revision::DELETED_TEXT, SpecialPage::getTitleFor(), and wfMsgHtml().
Referenced by showRevs().
SpecialRevisionDelete::logLine | ( | $ | row | ) | [private] |
Array | $row row |
Definition at line 672 of file SpecialRevisiondelete.php.
References $action, $row, $title, $wgLang, LogPage::actionText(), LogPage::DELETED_ACTION, LogPage::DELETED_COMMENT, LogPage::DELETED_USER, LogPage::extractParams(), SpecialPage::getTitleFor(), LogEventsList::isDeleted(), Title::makeTitle(), LogEventsList::userCan(), wfArrayToCGI(), and wfMsgHtml().
Referenced by showLogItems().
SpecialRevisionDelete::save | ( | $ | bitfield, | |
$ | reason, | |||
$ | title | |||
) | [private] |
Definition at line 809 of file SpecialRevisiondelete.php.
References $dbw, $reason, $title, Revision::DELETED_RESTRICTED, and wfGetDB().
Referenced by submit().
SpecialRevisionDelete::secureOperation | ( | ) | [private] |
Definition at line 125 of file SpecialRevisiondelete.php.
References $wgUser, LogPage::DELETED_ACTION, Revision::DELETED_COMMENT, File::DELETED_FILE, Revision::DELETED_RESTRICTED, Revision::DELETED_TEXT, and Revision::DELETED_USER.
Referenced by execute().
SpecialRevisionDelete::showFile | ( | $ | key | ) | [private] |
Show a deleted file version requested by the visitor.
Definition at line 165 of file SpecialRevisiondelete.php.
References $key, $wgOut, $wgRequest, and FileStore::get().
Referenced by execute().
SpecialRevisionDelete::showImages | ( | ) | [private] |
This lets a user set restrictions for archived images.
Definition at line 325 of file SpecialRevisiondelete.php.
References $count, $dbr, $filename, $result, $row, $wgLang, $wgOut, $wgUser, addUsageText(), archivedfileLine(), buildCheckBoxes(), Xml::closeElement(), File::DELETED_RESTRICTED, Xml::fieldset(), fileLine(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::inputLabel(), ArchivedFile::newFromRow(), Xml::openElement(), RepoGroup::singleton(), Xml::submitButton(), wfGetDB(), and wfMsg().
SpecialRevisionDelete::showLogItems | ( | ) | [private] |
This lets a user set restrictions for log items.
Definition at line 456 of file SpecialRevisiondelete.php.
References $dbr, $result, $row, $wgLang, $wgMessageCache, $wgOut, $wgUser, addUsageText(), buildCheckBoxes(), Xml::closeElement(), Revision::DELETED_RESTRICTED, Xml::fieldset(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::inputLabel(), logLine(), Xml::openElement(), Xml::submitButton(), LogEventsList::userCan(), wfGetDB(), and wfMsg().
SpecialRevisionDelete::showRevs | ( | ) | [private] |
This lets a user set restrictions for live and archived revisions.
Definition at line 184 of file SpecialRevisiondelete.php.
References $count, $dbr, $result, $row, $wgOut, $wgUser, addUsageText(), buildCheckBoxes(), Xml::closeElement(), Revision::DELETED_RESTRICTED, SpecialPage::getTitleFor(), Xml::hidden(), historyLine(), Xml::inputLabel(), Xml::openElement(), Xml::submitButton(), Xml::tags(), wfGetDB(), wfMsg(), and wfTimestamp().
SpecialRevisionDelete::submit | ( | $ | request | ) | [private] |
WebRequest | $request |
Definition at line 744 of file SpecialRevisiondelete.php.
References $wgOut, $wgUser, Revision::DELETED_RESTRICTED, extractBitfield(), save(), showImages(), showRevs(), and success().
Referenced by execute().
SpecialRevisionDelete::success | ( | ) | [private] |
Definition at line 771 of file SpecialRevisiondelete.php.
References $wgOut, showImages(), showLogItems(), showRevs(), and wfMsg().
Referenced by submit().