Public Member Functions | |
Revision ($row) | |
Constructor. | |
getId () | |
Get revision ID. | |
getTextId () | |
Get text row ID. | |
getParentId () | |
Get parent revision ID (the original previous page revision). | |
getSize () | |
Returns the length of the text in this revision, or null if unknown. | |
getTitle () | |
Returns the title of the page associated with this entry. | |
setTitle ($title) | |
Set the title of the revision. | |
getPage () | |
Get the page ID. | |
getUser ($audience=self::FOR_PUBLIC) | |
Fetch revision's user id if it's available to the specified audience. | |
getRawUser () | |
Fetch revision's user id without regard for the current user's permissions. | |
getUserText ($audience=self::FOR_PUBLIC) | |
Fetch revision's username if it's available to the specified audience. | |
getRawUserText () | |
Fetch revision's username without regard for view restrictions. | |
getComment ($audience=self::FOR_PUBLIC) | |
Fetch revision comment if it's available to the specified audience. | |
getRawComment () | |
Fetch revision comment without regard for the current user's permissions. | |
isMinor () | |
isUnpatrolled () | |
isDeleted ($field) | |
int $field one of DELETED_* bitfield constants | |
getVisibility () | |
Get the deletion bitfield of the revision. | |
getText ($audience=self::FOR_PUBLIC) | |
Fetch revision text if it's available to the specified audience. | |
revText () | |
Alias for getText(Revision::FOR_THIS_USER). | |
getRawText () | |
Fetch revision text without regard for view restrictions. | |
getTimestamp () | |
isCurrent () | |
getPrevious () | |
Get previous revision for this title. | |
getNext () | |
Get next revision for this title. | |
insertOn ($dbw) | |
Insert a new revision into the database, returning the new revision ID number on success and dies horribly on failure. | |
userCan ($field) | |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. | |
Static Public Member Functions | |
static | newFromId ($id) |
Load a page revision from a given revision ID number. | |
static | newFromTitle ($title, $id=0) |
Load either the current, or a specified, revision that's attached to a given title. | |
static | newFromArchiveRow ($row, $overrides=array()) |
Make a fake revision object from an archive table row. | |
static | loadFromId ($db, $id) |
Load a page revision from a given revision ID number. | |
static | loadFromPageId ($db, $pageid, $id=0) |
Load either the current, or a specified, revision that's attached to a given page. | |
static | loadFromTitle ($db, $title, $id=0) |
Load either the current, or a specified, revision that's attached to a given page. | |
static | loadFromTimestamp ($db, $title, $timestamp) |
Load the revision for the given title with the given timestamp. | |
static | newFromConds ($conditions) |
Given a set of conditions, fetch a revision. | |
static | fetchRevision ($title) |
Return a wrapper for a series of database rows to fetch all of a given page's revisions in turn. | |
static | selectFields () |
Return the list of revision fields that should be selected to create a new revision. | |
static | selectTextFields () |
Return the list of text fields that should be selected to read the revision text. | |
static | selectPageFields () |
Return the list of page fields that should be selected from page table. | |
static | getRevisionText ($row, $prefix= 'old_') |
Get revision text associated with an old or archive row $row is usually an object from wfFetchRow(), both the flags and the text field must be included. | |
static | compressRevisionText (&$text) |
If $wgCompressRevisions is enabled, we will compress data. | |
static | newNullRevision ($dbw, $pageId, $summary, $minor) |
Create a new null-revision for insertion into a page's history. | |
static | userCanBitfield ($bitfield, $field) |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. | |
static | getTimestampFromId ($title, $id) |
Get rev_timestamp from rev_id, without loading the rest of the row. | |
static | countByPageId ($db, $id) |
Get count of revisions per page. | |
static | countByTitle ($db, $title) |
Get count of revisions per page. | |
Public Attributes | |
const | DELETED_TEXT = 1 |
const | DELETED_COMMENT = 2 |
const | DELETED_USER = 4 |
const | DELETED_RESTRICTED = 8 |
const | SUPPRESSED_USER = 12 |
const | FOR_PUBLIC = 1 |
const | FOR_THIS_USER = 2 |
const | RAW = 3 |
Protected Member Functions | |
loadText () | |
Lazy-load the revision's text. | |
Private Member Functions | |
getPreviousRevisionId ($db) | |
Get previous revision Id for this page_id This is used to populate rev_parent_id on save. | |
Static Private Member Functions | |
static | loadFromConds ($db, $conditions) |
Given a set of conditions, fetch a revision from the given database connection. | |
static | fetchFromConds ($db, $conditions) |
Given a set of conditions, return a ResultWrapper which will return matching database rows with the fields necessary to build Revision objects. |
Definition at line 6 of file Revision.php.
static Revision::compressRevisionText | ( | &$ | text | ) | [static] |
If $wgCompressRevisions is enabled, we will compress data.
The input string is modified in place. Return value is the flags field: contains 'gzip' if the data is compressed, and 'utf-8' if we're saving in UTF-8 mode.
$text | Mixed: reference to a text |
Definition at line 778 of file Revision.php.
References $wgCompressRevisions, and wfDebug().
Referenced by CheckStorage::importRevision(), insertOn(), RevisionTest::testCompressRevisionTextUtf8(), and RevisionTest::testCompressRevisionTextUtf8Gzip().
static Revision::countByPageId | ( | $ | db, | |
$ | id | |||
) | [static] |
Get count of revisions per page.
..not very efficient
$db | DatabaseBase | |
$id | Integer: page id |
Definition at line 1045 of file Revision.php.
Referenced by countByTitle().
static Revision::countByTitle | ( | $ | db, | |
$ | title | |||
) | [static] |
Get count of revisions per page.
..not very efficient
$db | DatabaseBase | |
$title | Title |
Definition at line 1061 of file Revision.php.
References $title, and countByPageId().
static Revision::fetchFromConds | ( | $ | db, | |
$ | conditions | |||
) | [static, private] |
Given a set of conditions, return a ResultWrapper which will return matching database rows with the fields necessary to build Revision objects.
$db | Database | |
$conditions | Array |
Definition at line 230 of file Revision.php.
References $res, and selectFields().
Referenced by fetchRevision(), and loadFromConds().
static Revision::fetchRevision | ( | $ | title | ) | [static] |
Return a wrapper for a series of database rows to fetch all of a given page's revisions in turn.
Each row can be fed to the constructor to get objects.
$title | Title |
Definition at line 212 of file Revision.php.
References $title, fetchFromConds(), and wfGetDB().
Revision::getComment | ( | $ | audience = self::FOR_PUBLIC |
) |
Fetch revision comment if it's available to the specified audience.
If the specified audience does not have access to the comment, an empty string will be returned.
$audience | Integer: one of: Revision::FOR_PUBLIC to be displayed to all users Revision::FOR_THIS_USER to be displayed to $wgUser Revision::RAW get the text regardless of permissions |
Definition at line 515 of file Revision.php.
References isDeleted(), and userCan().
Referenced by Linker::revComment().
Revision::getId | ( | ) |
Get revision ID.
Definition at line 368 of file Revision.php.
Referenced by getNext(), getPrevious(), and isUnpatrolled().
Revision::getNext | ( | ) |
Get next revision for this title.
Definition at line 657 of file Revision.php.
References getId(), getTitle(), and newFromTitle().
Revision::getPage | ( | ) |
Revision::getParentId | ( | ) |
Get parent revision ID (the original previous page revision).
Definition at line 386 of file Revision.php.
Revision::getPrevious | ( | ) |
Get previous revision for this title.
Definition at line 642 of file Revision.php.
References getId(), getTitle(), and newFromTitle().
Revision::getPreviousRevisionId | ( | $ | db | ) | [private] |
Get previous revision Id for this page_id This is used to populate rev_parent_id on save.
$db | DatabaseBase |
Definition at line 674 of file Revision.php.
Referenced by insertOn().
Revision::getRawComment | ( | ) |
Fetch revision comment without regard for the current user's permissions.
Definition at line 530 of file Revision.php.
Referenced by Linker::revComment().
Revision::getRawText | ( | ) |
Fetch revision text without regard for view restrictions.
Definition at line 615 of file Revision.php.
References loadText().
Referenced by getText().
Revision::getRawUser | ( | ) |
Fetch revision's user id without regard for the current user's permissions.
Definition at line 468 of file Revision.php.
Revision::getRawUserText | ( | ) |
Fetch revision's username without regard for view restrictions.
Definition at line 499 of file Revision.php.
Referenced by isUnpatrolled().
static Revision::getRevisionText | ( | $ | row, | |
$ | prefix = 'old_' | |||
) | [static] |
Get revision text associated with an old or archive row $row is usually an object from wfFetchRow(), both the flags and the text field must be included.
$row | Object: the text data | |
$prefix | String: table prefix (default 'old_') |
Definition at line 701 of file Revision.php.
References $path, $url, $wgContLang, $wgInputEncoding, $wgLegacyEncoding, ExternalStore::fetchFromURL(), wfProfileIn(), and wfProfileOut().
Referenced by compressWithConcat(), FetchText::doGetText(), RecompressTracked::doOrphanList(), RecompressTracked::doPage(), ApiQueryDeletedrevs::execute(), TextPassDumper::getTextDb(), MessageCache::loadFromDB(), loadText(), newFromArchiveRow(), RebuildTextIndex::populateSearchIndex(), RevisionTest::testCompressRevisionTextUtf8(), RevisionTest::testCompressRevisionTextUtf8Gzip(), RevisionTest::testGetRevisionText(), RevisionTest::testGetRevisionTextGzip(), RevisionTest::testGetRevisionTextUtf8Legacy(), RevisionTest::testGetRevisionTextUtf8LegacyGzip(), RevisionTest::testGetRevisionTextUtf8Native(), RevisionTest::testGetRevisionTextUtf8NativeGzip(), and XmlDumpWriter::writeRevision().
Revision::getSize | ( | ) |
Returns the length of the text in this revision, or null if unknown.
Definition at line 395 of file Revision.php.
Revision::getText | ( | $ | audience = self::FOR_PUBLIC |
) |
Fetch revision text if it's available to the specified audience.
If the specified audience does not have the ability to view this revision, an empty string will be returned.
$audience | Integer: one of: Revision::FOR_PUBLIC to be displayed to all users Revision::FOR_THIS_USER to be displayed to $wgUser Revision::RAW get the text regardless of permissions |
Definition at line 591 of file Revision.php.
References getRawText(), isDeleted(), and userCan().
Referenced by Article::getUndoText(), and revText().
Revision::getTextId | ( | ) |
Get text row ID.
Definition at line 377 of file Revision.php.
Referenced by loadText().
Revision::getTimestamp | ( | ) |
static Revision::getTimestampFromId | ( | $ | title, | |
$ | id | |||
) | [static] |
Get rev_timestamp from rev_id, without loading the rest of the row.
$title | Title | |
$id | Integer |
Definition at line 1021 of file Revision.php.
References $dbr, $dbw, $title, wfGetDB(), wfGetLB(), and wfTimestamp().
Referenced by lastModified().
Revision::getTitle | ( | ) |
Returns the title of the page associated with this entry.
Definition at line 404 of file Revision.php.
References $dbr, Title::makeTitle(), and wfGetDB().
Referenced by getNext(), getPrevious(), and Linker::revComment().
Revision::getUser | ( | $ | audience = self::FOR_PUBLIC |
) |
Fetch revision's user id if it's available to the specified audience.
If the specified audience does not have access to it, zero will be returned.
$audience | Integer: one of: Revision::FOR_PUBLIC to be displayed to all users Revision::FOR_THIS_USER to be displayed to $wgUser Revision::RAW get the ID regardless of permissions |
Definition at line 453 of file Revision.php.
References isDeleted(), and userCan().
Revision::getUserText | ( | $ | audience = self::FOR_PUBLIC |
) |
Fetch revision's username if it's available to the specified audience.
If the specified audience does not have access to the username, an empty string will be returned.
$audience | Integer: one of: Revision::FOR_PUBLIC to be displayed to all users Revision::FOR_THIS_USER to be displayed to $wgUser Revision::RAW get the text regardless of permissions |
Definition at line 484 of file Revision.php.
References isDeleted(), and userCan().
Revision::getVisibility | ( | ) |
Revision::insertOn | ( | $ | dbw | ) |
Insert a new revision into the database, returning the new revision ID number on success and dies horribly on failure.
$dbw | DatabaseBase (master connection) |
Definition at line 804 of file Revision.php.
References $dbw, $wgDefaultExternalStore, compressRevisionText(), getPreviousRevisionId(), ExternalStore::insertToDefault(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Revision::isCurrent | ( | ) |
Revision::isDeleted | ( | $ | field | ) |
int $field one of DELETED_* bitfield constants
Definition at line 567 of file Revision.php.
Referenced by getComment(), getText(), getUser(), getUserText(), and Linker::revComment().
Revision::isMinor | ( | ) |
Revision::isUnpatrolled | ( | ) |
Definition at line 544 of file Revision.php.
References $dbr, getId(), getRawUserText(), and wfGetDB().
static Revision::loadFromConds | ( | $ | db, | |
$ | conditions | |||
) | [static, private] |
Given a set of conditions, fetch a revision from the given database connection.
$db | Database | |
$conditions | Array |
Definition at line 190 of file Revision.php.
References $res, fetchFromConds(), and Revision().
Referenced by loadFromId(), loadFromPageId(), loadFromTimestamp(), loadFromTitle(), and newFromConds().
static Revision::loadFromId | ( | $ | db, | |
$ | id | |||
) | [static] |
Load a page revision from a given revision ID number.
Returns null if no such revision can be found.
$db | DatabaseBase | |
$id | Integer |
Definition at line 97 of file Revision.php.
References loadFromConds().
static Revision::loadFromPageId | ( | $ | db, | |
$ | pageid, | |||
$ | id = 0 | |||
) | [static] |
Load either the current, or a specified, revision that's attached to a given page.
If not attached to that page, will return null.
$db | DatabaseBase | |
$pageid | Integer | |
$id | Integer |
Definition at line 113 of file Revision.php.
References loadFromConds().
Referenced by UpdateSearchIndex::doUpdateSearchIndex(), and Article::loadLastEdit().
static Revision::loadFromTimestamp | ( | $ | db, | |
$ | title, | |||
$ | timestamp | |||
) | [static] |
Load the revision for the given title with the given timestamp.
WARNING: Timestamps may in some circumstances not be unique, so this isn't the best key to use.
Definition at line 157 of file Revision.php.
References $title, and loadFromConds().
Referenced by AttachLatest::execute(), EditPage::getBaseRevision(), and Article::replaceSection().
static Revision::loadFromTitle | ( | $ | db, | |
$ | title, | |||
$ | id = 0 | |||
) | [static] |
Load either the current, or a specified, revision that's attached to a given page.
If not attached to that page, will return null.
$db | DatabaseBase | |
$title | Title | |
$id | Integer |
Definition at line 133 of file Revision.php.
References $title, and loadFromConds().
Referenced by EditPage::mergeChangesInto().
Revision::loadText | ( | ) | [protected] |
Lazy-load the revision's text.
Currently hardcoded to the 'text' table storage engine.
Definition at line 875 of file Revision.php.
References $dbr, $dbw, $wgMemc, $wgRevisionCacheExpiry, getRevisionText(), getTextId(), wfDebug(), wfGetDB(), wfGetLB(), wfMemcKey(), wfProfileIn(), and wfProfileOut().
Referenced by getRawText().
static Revision::newFromArchiveRow | ( | $ | row, | |
$ | overrides = array() | |||
) | [static] |
Make a fake revision object from an archive table row.
This is queried for permissions or even inserted (as in Special:Undelete)
Definition at line 70 of file Revision.php.
References getRevisionText().
Referenced by RevDel_ArchiveItem::__construct(), UndeleteForm::formatRevisionRow(), PageArchive::getRevision(), and PageArchive::undeleteRevisions().
static Revision::newFromConds | ( | $ | conditions | ) | [static] |
Given a set of conditions, fetch a revision.
$conditions | Array |
Definition at line 172 of file Revision.php.
References $dbw, loadFromConds(), wfGetDB(), and wfGetLB().
Referenced by newFromId(), and newFromTitle().
static Revision::newFromId | ( | $ | id | ) | [static] |
Load a page revision from a given revision ID number.
Returns null if no such revision can be found.
$id | Integer |
Definition at line 25 of file Revision.php.
References newFromConds().
Referenced by MediaWiki::checkInitialQueries(), Orphans::checkSeparation(), Article::commitRollback(), CheckBadRedirects::execute(), SpecialRevisionDelete::execute(), SpecialNewpages::feedItemDesc(), Article::fetchContent(), FeedUtils::formatDiffRow(), EditPage::getContent(), PageArchive::getPreviousRevision(), Parser::getRevisionUser(), DifferenceEngine::loadRevisionData(), Article::setOldSubtitle(), and Parser::statelessFetchTemplate().
static Revision::newFromTitle | ( | $ | title, | |
$ | id = 0 | |||
) | [static] |
Load either the current, or a specified, revision that's attached to a given title.
If not attached to that title, will return null.
$title | Title | |
$id | Integer |
Definition at line 40 of file Revision.php.
References $dbw, $title, newFromConds(), wfGetDB(), and wfGetLB().
Referenced by SearchResult::__construct(), CleanupSpam::cleanupArticle(), Article::commitRollback(), GetTextMaint::execute(), SpecialContributions::feedItem(), RefreshLinks::fixLinksFromArticle(), ListredirectsPage::formatResult(), Article::generateReason(), RawPage::getArticleText(), LocalFile::getDescriptionText(), MessageCache::getMsgFromNamespace(), getNext(), Article::getParserOutput(), EditPage::getPreloadedText(), getPrevious(), Article::getRawText(), Title::isValidMoveTarget(), DifferenceEngine::loadRevisionData(), CoreParserFunctions::pagesize(), Article::replaceSection(), RefreshLinksJob2::run(), RefreshLinksJob::run(), DoubleRedirectJob::run(), EditPage::showCustomIntro(), SpecialBookSources::showList(), and Parser::statelessFetchTemplate().
static Revision::newNullRevision | ( | $ | dbw, | |
$ | pageId, | |||
$ | summary, | |||
$ | minor | |||
) | [static] |
Create a new null-revision for insertion into a page's history.
This will not re-save the text, but simply refer to the text from the previous version.
Such revisions can for instance identify page rename operations and other such meta-modifications.
$dbw | DatabaseBase | |
$pageId | Integer: ID number of the page to read from | |
$summary | String: revision's summary | |
$minor | Boolean: whether the revision should be considered as minor |
Definition at line 943 of file Revision.php.
References $dbw, Revision(), wfProfileIn(), and wfProfileOut().
Referenced by Title::moveOverExistingRedirect(), Title::moveToNewTitle(), LocalFile::recordUpload2(), ImportReporter::reportPage(), and Article::updateRestrictions().
Revision::Revision | ( | $ | row | ) |
Constructor.
$row | Mixed: either a database row or an array |
Definition at line 293 of file Revision.php.
References $wgUser, Title::makeTitle(), and wfTimestamp().
Referenced by loadFromConds(), and newNullRevision().
Revision::revText | ( | ) |
Alias for getText(Revision::FOR_THIS_USER).
Definition at line 606 of file Revision.php.
References getText().
static Revision::selectFields | ( | ) | [static] |
Return the list of revision fields that should be selected to create a new revision.
Definition at line 249 of file Revision.php.
Referenced by ApiQueryRevisions::execute(), fetchFromConds(), HistoryPage::fetchRevisions(), and HistoryPager::getQueryInfo().
static Revision::selectPageFields | ( | ) | [static] |
Return the list of page fields that should be selected from page table.
Definition at line 279 of file Revision.php.
Referenced by ApiQueryRevisions::execute().
static Revision::selectTextFields | ( | ) | [static] |
Return the list of text fields that should be selected to read the revision text.
Definition at line 269 of file Revision.php.
Referenced by ApiQueryRevisions::execute().
Revision::setTitle | ( | $ | title | ) |
Set the title of the revision.
$title | Title |
Definition at line 427 of file Revision.php.
References $title.
Revision::userCan | ( | $ | field | ) |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted.
$field | Integer:one of self::DELETED_TEXT, self::DELETED_COMMENT, self::DELETED_USER |
Definition at line 981 of file Revision.php.
References userCanBitfield().
Referenced by getComment(), getText(), getUser(), getUserText(), and Linker::revComment().
static Revision::userCanBitfield | ( | $ | bitfield, | |
$ | field | |||
) | [static] |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted.
This is used by various classes to avoid duplication.
$bitfield | Integer: current field | |
$field | Integer: one of self::DELETED_TEXT = File::DELETED_FILE, self::DELETED_COMMENT = File::DELETED_COMMENT, self::DELETED_USER = File::DELETED_USER |
Definition at line 996 of file Revision.php.
References $wgUser, and wfDebug().
Referenced by userCan(), OldLocalFile::userCan(), ArchivedFile::userCan(), and ChangesList::userCan().
const Revision::DELETED_COMMENT = 2 |
Definition at line 8 of file Revision.php.
Referenced by LocalFileDeleteBatch::doDBInserts(), Article::doDeleteArticle(), SpecialRevisionDelete::execute(), ApiQueryContributions::extractRowInfo(), ApiQueryRevisions::extractRowInfo(), FeedUtils::formatDiff(), RevisionDeleter::getChanges(), ChangesList::insertComment(), Linker::revComment(), and XmlDumpWriter::writeRevision().
const Revision::DELETED_RESTRICTED = 8 |
Definition at line 10 of file Revision.php.
Referenced by SpecialRevisionDelete::buildCheckBoxes(), RevDel_LogItem::canView(), RevDel_RevisionItem::canView(), UndeleteForm::diffHeader(), LocalFileDeleteBatch::doDBInserts(), Article::doDeleteArticle(), SpecialRevisionDelete::execute(), SpecialRevisionDelete::extractBitParams(), UndeleteForm::formatRevisionRow(), DeletedContribsPager::formatRow(), ContribsPager::formatRow(), RevisionDeleter::getChanges(), RevDel_LogList::getSuppressBit(), RevDel_RevisionList::getSuppressBit(), HistoryPager::historyLine(), DifferenceEngine::revisionDeleteLink(), Article::setOldSubtitle(), IPBlockForm::setUsernameBitfields(), RevDel_List::setVisibility(), Article::showDeletedRevisionHeader(), DifferenceEngine::showDiffPage(), UndeleteForm::showRevision(), and SpecialRevisionDelete::submit().
const Revision::DELETED_TEXT = 1 |
Definition at line 7 of file Revision.php.
Referenced by RevDel_RevisionItem::canViewContent(), HistoryPager::curLink(), HistoryPager::diffButtons(), LocalFileDeleteBatch::doDBInserts(), Article::doDeleteArticle(), ApiQueryRevisions::execute(), ApiParse::execute(), ApiEditPage::execute(), ApiQueryRevisions::extractRowInfo(), UndeleteForm::formatRevisionRow(), MergehistoryForm::formatRevisionRow(), DeletedContribsPager::formatRow(), ContribsPager::formatRow(), RevisionDeleter::getChanges(), EditPage::getContent(), DifferenceEngine::getDiffBody(), UndeleteForm::getPageLink(), MergehistoryForm::getPageLink(), HistoryPager::historyLine(), ChangesList::insertArticleLink(), ChangesList::insertDiffHist(), RevDel_RevisionItem::isDeleted(), RevDel_RevisionItem::isHideCurrentOp(), HistoryPager::lastLink(), DifferenceEngine::loadRevisionData(), EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesLine(), DifferenceEngine::renderNewRevision(), HistoryPager::revLink(), Article::showDeletedRevisionHeader(), DifferenceEngine::showDiffPage(), EditPage::showHeader(), UndeleteForm::showRevision(), PageArchive::undeleteRevisions(), and XmlDumpWriter::writeRevision().
const Revision::DELETED_USER = 4 |
Definition at line 9 of file Revision.php.
Referenced by WikiExporter::do_list_authors(), LocalFileDeleteBatch::doDBInserts(), Article::doDeleteArticle(), SpecialRevisionDelete::execute(), ApiQueryRevisions::execute(), ApiQueryContributions::extractRowInfo(), ApiQueryRevisions::extractRowInfo(), DeletedContribsPager::formatRow(), ContribsPager::formatRow(), ChangesFeed::generateFeed(), Article::generateReason(), RevisionDeleter::getChanges(), Article::getContributors(), DeletedContribsPager::getQueryInfo(), ContribsPager::getQueryInfo(), RevDel_FileItem::getUserTools(), ChangesList::insertUserRelatedLinks(), ApiQueryContributions::prepareQuery(), EnhancedChangesList::recentChangesLine(), Linker::revUserLink(), Linker::revUserTools(), IPBlockForm::setUsernameBitfields(), and XmlDumpWriter::writeRevision().
const Revision::FOR_PUBLIC = 1 |
const Revision::FOR_THIS_USER = 2 |
Definition at line 15 of file Revision.php.
Referenced by ApiParse::execute(), Article::fetchContent(), DifferenceEngine::loadNewText(), DifferenceEngine::loadText(), Linker::revComment(), Linker::revUserLink(), Linker::revUserTools(), and UndeleteForm::showRevision().
const Revision::RAW = 3 |
const Revision::SUPPRESSED_USER = 12 |
Definition at line 12 of file Revision.php.
Referenced by DeletedContribsPager::getQueryInfo(), and ContribsPager::getQueryInfo().