MediaWiki
1.30.0
|
Public Member Functions | |
__construct ( $row) | |
getComment ( $audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision comment if it's available to the specified audience. More... | |
getContent ( $audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision content if it's available to the specified audience. More... | |
getContentFormat () | |
Returns the content format for this revision. More... | |
getContentHandler () | |
Returns the content handler appropriate for this revision's content model. More... | |
getContentModel () | |
Returns the content model for this revision. More... | |
getId () | |
Get revision ID. More... | |
getNext () | |
Get next revision for this title. More... | |
getPage () | |
Get the page ID. More... | |
getParentId () | |
Get parent revision ID (the original previous page revision) More... | |
getPrevious () | |
Get previous revision for this title. More... | |
getRawComment () | |
Fetch revision comment without regard for the current user's permissions. More... | |
getRawUser () | |
Fetch revision's user id without regard for the current user's permissions. More... | |
getRawUserText () | |
Fetch revision's username without regard for view restrictions. More... | |
getRecentChange ( $flags=0) | |
Get the RC object belonging to the current revision, if there's one. More... | |
getSerializedData () | |
Get original serialized data (without checking view restrictions) More... | |
getSha1 () | |
Returns the base36 sha1 of the text in this revision, or null if unknown. More... | |
getSize () | |
Returns the length of the text in this revision, or null if unknown. More... | |
getTextId () | |
Get text row ID. More... | |
getTimestamp () | |
getTitle () | |
Returns the title of the page associated with this entry or null. More... | |
getUser ( $audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision's user id if it's available to the specified audience. More... | |
getUserText ( $audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision's username if it's available to the specified audience. More... | |
getVisibility () | |
Get the deletion bitfield of the revision. More... | |
insertOn ( $dbw) | |
Insert a new revision into the database, returning the new revision ID number on success and dies horribly on failure. More... | |
isCurrent () | |
isDeleted ( $field) | |
isMinor () | |
isUnpatrolled () | |
setId ( $id) | |
Set the revision ID. More... | |
setTitle ( $title) | |
Set the title of the revision. More... | |
setUserIdAndName ( $id, $name) | |
Set the user ID/name. More... | |
userCan ( $field, User $user=null) | |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. More... | |
Static Public Member Functions | |
static | base36Sha1 ( $text) |
Get the base 36 SHA-1 value for a string of text. More... | |
static | compressRevisionText (&$text) |
If $wgCompressRevisions is enabled, we will compress data. More... | |
static | countByPageId ( $db, $id) |
Get count of revisions per page...not very efficient. More... | |
static | countByTitle ( $db, $title) |
Get count of revisions per page...not very efficient. More... | |
static | decompressRevisionText ( $text, $flags) |
Re-converts revision text according to it's flags. More... | |
static | fetchRevision (LinkTarget $title) |
Return a wrapper for a series of database rows to fetch all of a given page's revisions in turn. More... | |
static | getParentLengths ( $db, array $revIds) |
Do a batched query to get the parent revision lengths. More... | |
static | getRevisionText ( $row, $prefix='old_', $wiki=false) |
Get revision text associated with an old or archive row. More... | |
static | getTimestampFromId ( $title, $id, $flags=0) |
Get rev_timestamp from rev_id, without loading the rest of the row. More... | |
static | loadFromId ( $db, $id) |
Load a page revision from a given revision ID number. More... | |
static | loadFromPageId ( $db, $pageid, $id=0) |
Load either the current, or a specified, revision that's attached to a given page. More... | |
static | loadFromTimestamp ( $db, $title, $timestamp) |
Load the revision for the given title with the given timestamp. More... | |
static | loadFromTitle ( $db, $title, $id=0) |
Load either the current, or a specified, revision that's attached to a given page. More... | |
static | newFromArchiveRow ( $row, $overrides=[]) |
Make a fake revision object from an archive table row. More... | |
static | newFromId ( $id, $flags=0) |
Load a page revision from a given revision ID number. More... | |
static | newFromPageId ( $pageId, $revId=0, $flags=0) |
Load either the current, or a specified, revision that's attached to a given page ID. More... | |
static | newFromRow ( $row) |
static | newFromTitle (LinkTarget $linkTarget, $id=0, $flags=0) |
Load either the current, or a specified, revision that's attached to a given link target. More... | |
static | newKnownCurrent (IDatabase $db, $pageId, $revId) |
Load a revision based on a known page ID and current revision ID from the DB. More... | |
static | newNullRevision ( $dbw, $pageId, $summary, $minor, $user=null) |
Create a new null-revision for insertion into a page's history. More... | |
static | pageJoinCond () |
Return the value of a select() page conds array for the page table. More... | |
static | selectArchiveFields () |
Return the list of revision fields that should be selected to create a new revision from an archive row. More... | |
static | selectFields () |
Return the list of revision fields that should be selected to create a new revision. More... | |
static | selectPageFields () |
Return the list of page fields that should be selected from page table. More... | |
static | selectTextFields () |
Return the list of text fields that should be selected to read the revision text. More... | |
static | selectUserFields () |
Return the list of user fields that should be selected from user table. More... | |
static | userCanBitfield ( $bitfield, $field, User $user=null, Title $title=null) |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. More... | |
static | userJoinCond () |
Return the value of a select() JOIN conds array for the user table. More... | |
static | userWasLastToEdit ( $db, $pageId, $userId, $since) |
Check if no edits were made by other users since the time a user started editing the page. More... | |
Public Attributes | |
const | DELETED_COMMENT = 2 |
const | DELETED_RESTRICTED = 8 |
const | DELETED_TEXT = 1 |
const | DELETED_USER = 4 |
const | FOR_PUBLIC = 1 |
const | FOR_THIS_USER = 2 |
const | RAW = 3 |
const | SUPPRESSED_ALL = 15 |
const | SUPPRESSED_USER = 12 |
const | TEXT_CACHE_GROUP = 'revisiontext:10' |
Public Attributes inherited from IDBAccessObject | |
const | READ_LOCKING = 3 |
Constants for object loading bitfield flags (higher => higher QoS) More... | |
const | READ_NONE = -1 |
Protected Member Functions | |
checkContentModel () | |
getContentInternal () | |
Gets the content object for the revision (or null on failure). More... | |
Protected Attributes | |
string | $mComment |
Content null bool | $mContent |
string | $mContentFormat |
null ContentHandler | $mContentHandler |
string | $mContentModel |
bool | $mCurrent |
int | $mDeleted |
int null | $mId |
bool | $mMinorEdit |
string | $mOrigUserText |
int null | $mPage |
int | $mParentId |
int | $mQueryFlags = 0 |
bool | $mRefreshMutableFields = false |
Used for cached values to reload user text and rev_deleted. More... | |
string | $mSha1 |
int | $mSize |
string | $mText |
int | $mTextId |
stdClass null | $mTextRow |
string | $mTimestamp |
null Title | $mTitle |
int | $mUnpatrolled |
int | $mUser |
string | $mUserText |
string | $mWiki = false |
Wiki ID; false means the current wiki. More... | |
Private Member Functions | |
fetchText () | |
getPreviousRevisionId ( $db) | |
Get previous revision Id for this page_id This is used to populate rev_parent_id on save. More... | |
loadMutableFields () | |
For cached revisions, make sure the user name and rev_deleted is up-to-date. More... | |
loadText () | |
Lazy-load the revision's text. More... | |
Static Private Member Functions | |
static | fetchFromConds ( $db, $conditions, $flags=0) |
Given a set of conditions, return a ResultWrapper which will return matching database rows with the fields necessary to build Revision objects. More... | |
static | getCacheTTL (WANObjectCache $cache) |
Get the text cache TTL. More... | |
static | loadFromConds ( $db, $conditions, $flags=0) |
Given a set of conditions, fetch a revision from the given database connection. More... | |
static | newFromConds ( $conditions, $flags=0) |
Given a set of conditions, fetch a revision. More... | |
Definition at line 33 of file Revision.php.
Revision::__construct | ( | $row | ) |
object | array | $row | Either a database row or an array |
MWException |
Definition at line 574 of file Revision.php.
References $handler, $mPage, $wgUser, base36Sha1(), DB_REPLICA, getContentFormat(), getContentHandler(), getContentModel(), global, needed(), Title\newFromRow(), CommentStore\newKey(), on, wfDebug(), wfGetDB(), and wfTimestampNow().
|
static |
Get the base 36 SHA-1 value for a string of text.
string | $text |
Definition at line 1600 of file Revision.php.
Referenced by __construct(), RevisionTest\dataGetSha1(), insertOn(), PopulateRevisionSha1\upgradeLegacyArchiveRow(), and PopulateRevisionSha1\upgradeRow().
|
protected |
Definition at line 1538 of file Revision.php.
References $handler, $mId, $t, $title, $wgContentHandlerUseDB, getContent(), getContentFormat(), getContentHandler(), getContentModel(), ContentHandler\getDefaultModelFor(), ContentHandler\getForModelID(), getTitle(), and global.
Referenced by insertOn().
|
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.
mixed | &$text | Reference to a text |
Definition at line 1323 of file Revision.php.
References $flags, $wgCompressRevisions, global, wfDebug(), and wfLogWarning().
Referenced by CheckStorage\importRevision(), insertOn(), RevisionTest\testCompressRevisionTextUtf8(), and RevisionTest\testCompressRevisionTextUtf8Gzip().
|
static |
Get count of revisions per page...not very efficient.
IDatabase | $db | |
int | $id | Page id |
Definition at line 1862 of file Revision.php.
Referenced by countByTitle().
|
static |
Get count of revisions per page...not very efficient.
IDatabase | $db | |
Title | $title |
Definition at line 1878 of file Revision.php.
References $title, and countByPageId().
|
static |
Re-converts revision text according to it's flags.
mixed | $text | Reference to a text |
array | $flags | Compression flags |
Definition at line 1355 of file Revision.php.
References $flags, $wgContLang, $wgLegacyEncoding, global, unserialize(), and wfLogWarning().
Referenced by getRevisionText().
|
staticprivate |
Given a set of conditions, return a ResultWrapper which will return matching database rows with the fields necessary to build Revision objects.
IDatabase | $db | |
array | $conditions | |
int | $flags | (optional) |
Definition at line 405 of file Revision.php.
References $flags, and $options.
Referenced by fetchRevision(), and loadFromConds().
|
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.
LinkTarget | $title |
Definition at line 382 of file Revision.php.
References $title, DB_REPLICA, fetchFromConds(), and wfGetDB().
Referenced by RevisionStorageTest\testFetchRevision().
|
private |
Definition at line 1643 of file Revision.php.
References $flags, $mQueryFlags, $mTextRow, $options, DBAccessObjectUtils\getDBOptions(), getRevisionText(), getTextId(), DBAccessObjectUtils\hasFlags(), list, wfDebugLog(), and wfGetDB().
Referenced by loadText().
|
staticprivate |
Get the text cache TTL.
WANObjectCache | $cache |
Definition at line 1610 of file Revision.php.
References $cache, $wgRevisionCacheExpiry, and global.
Referenced by getRevisionText().
Revision::getComment | ( | $audience = self::FOR_PUBLIC , |
|
User | $user = null |
||
) |
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.
int | $audience | One of: Revision::FOR_PUBLIC to be displayed to all users Revision::FOR_THIS_USER to be displayed to the given user Revision::RAW get the text regardless of permissions |
User | null | $user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 955 of file Revision.php.
References $mComment, $user, isDeleted(), and userCan().
Referenced by ApiQueryRevisionsBase\extractRevisionInfo(), and getRawComment().
Revision::getContent | ( | $audience = self::FOR_PUBLIC , |
|
User | $user = null |
||
) |
Fetch revision content if it's available to the specified audience.
If the specified audience does not have the ability to view this revision, null will be returned.
int | $audience | 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 |
User | $user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 1065 of file Revision.php.
References $user, getContentInternal(), isDeleted(), and userCan().
Referenced by checkContentModel(), WikiPage\doEditUpdates(), ApiQueryRevisionsBase\extractRevisionInfo(), ContentHandler\getUndoContent(), CategoryMembershipChangeJob\notifyUpdatesForRevision(), and BenchmarkParse\runParser().
Revision::getContentFormat | ( | ) |
Returns the content format for this revision.
If no content format was stored in the database, the default format for this revision's content model is returned.
Definition at line 1150 of file Revision.php.
References $handler, $mContentFormat, and getContentHandler().
Referenced by __construct(), RevisionStorageTest\assertRevEquals(), checkContentModel(), getContentHandler(), getContentInternal(), and insertOn().
Revision::getContentHandler | ( | ) |
Returns the content handler appropriate for this revision's content model.
MWException |
Definition at line 1167 of file Revision.php.
References $mContentHandler, getContentFormat(), getContentModel(), and ContentHandler\getForModelID().
Referenced by __construct(), checkContentModel(), ApiQueryRevisionsBase\extractRevisionInfo(), getContentFormat(), getContentInternal(), and WikiPage\getUndoContent().
|
protected |
Gets the content object for the revision (or null on failure).
Note that for mutable Content objects, each call to this method will return a fresh clone.
Definition at line 1099 of file Revision.php.
References $handler, getContentFormat(), getContentHandler(), and getSerializedData().
Referenced by getContent().
Revision::getContentModel | ( | ) |
Returns the content model for this revision.
If no content model was stored in the database, the default content model for the title is used to determine the content model to use. If no title is know, CONTENT_MODEL_WIKITEXT is used as a last resort.
Definition at line 1126 of file Revision.php.
References $mContentModel, $title, CONTENT_MODEL_WIKITEXT, ContentHandler\getDefaultModelFor(), and getTitle().
Referenced by __construct(), RevisionStorageTest\assertRevEquals(), checkContentModel(), ApiQueryRevisionsBase\extractRevisionInfo(), getContentHandler(), and insertOn().
Revision::getId | ( | ) |
Get revision ID.
Definition at line 743 of file Revision.php.
References $mId.
Referenced by RevisionStorageTest\assertRevEquals(), WikiPage\doEditUpdates(), ApiQueryRevisionsBase\extractRevisionInfo(), getNext(), getPrevious(), getRecentChange(), ContentHandler\getUndoContent(), CategoryMembershipChange\notifyCategorization(), and BenchmarkParse\runParser().
Revision::getNext | ( | ) |
Get next revision for this title.
Definition at line 1217 of file Revision.php.
References getId(), getTitle(), and newFromTitle().
Revision::getPage | ( | ) |
Get the page ID.
Definition at line 860 of file Revision.php.
References $mPage.
Referenced by RevisionStorageTest\assertRevEquals().
Revision::getParentId | ( | ) |
Get parent revision ID (the original previous page revision)
Definition at line 788 of file Revision.php.
References $mParentId.
Referenced by ApiQueryRevisionsBase\extractRevisionInfo(), and CategoryMembershipChangeJob\notifyUpdatesForRevision().
|
static |
Do a batched query to get the parent revision lengths.
IDatabase | $db | |
array | $revIds |
Definition at line 554 of file Revision.php.
Referenced by ContribsPager\doBatchLookups(), HistoryPager\doBatchLookups(), and ApiQueryContributions\execute().
Revision::getPrevious | ( | ) |
Get previous revision for this title.
Definition at line 1202 of file Revision.php.
References getId(), getTitle(), and newFromTitle().
|
private |
Get previous revision Id for this page_id This is used to populate rev_parent_id on save.
IDatabase | $db |
Definition at line 1234 of file Revision.php.
Referenced by insertOn().
Revision::getRawComment | ( | ) |
Fetch revision comment without regard for the current user's permissions.
Definition at line 971 of file Revision.php.
References getComment(), and wfDeprecated().
Revision::getRawUser | ( | ) |
Fetch revision's user id without regard for the current user's permissions.
Definition at line 893 of file Revision.php.
References getUser(), and wfDeprecated().
Revision::getRawUserText | ( | ) |
Fetch revision's username without regard for view restrictions.
Definition at line 937 of file Revision.php.
References getUserText(), and wfDeprecated().
Revision::getRecentChange | ( | $flags = 0 | ) |
Get the RC object belonging to the current revision, if there's one.
int | $flags | (optional) $flags include: Revision::READ_LATEST : Select the data from the master |
Definition at line 1008 of file Revision.php.
References $dbr, $flags, DB_REPLICA, DBAccessObjectUtils\getDBOptions(), getId(), getUserText(), list, RecentChange\newFromConds(), and wfGetDB().
Referenced by isUnpatrolled().
|
static |
Get revision text associated with an old or archive row.
Both the flags and the text field must be included. Including the old_id field will activate cache usage as long as the $wiki parameter is not set.
stdClass | $row | The text data |
string | $prefix | Table prefix (default 'old_') |
string | bool | $wiki | The name of the wiki to load the revision text from (same as the the wiki $row was loaded from) or false to indicate the local wiki (this is the default). Otherwise, it must be a symbolic wiki database identifier as understood by the LoadBalancer class. |
Definition at line 1266 of file Revision.php.
References $cache, $flags, captcha-old\count, decompressRevisionText(), ExternalStore\fetchFromURL(), getCacheTTL(), TEXT_CACHE_GROUP, and use.
Referenced by CompressOld\compressWithConcat(), FetchText\doGetText(), RecompressTracked\doOrphanList(), RecompressTracked\doPage(), ApiQueryDeletedrevs\execute(), fetchText(), TextPassDumper\getTextDb(), PageArchive\getTextFromRow(), MessageCache\loadFromDB(), newFromArchiveRow(), RevisionTest\testCompressRevisionTextUtf8(), RevisionTest\testCompressRevisionTextUtf8Gzip(), RevisionTest\testGetRevisionText(), RevisionTest\testGetRevisionTextGzip(), RevisionTest\testGetRevisionTextUtf8Legacy(), RevisionTest\testGetRevisionTextUtf8LegacyGzip(), RevisionTest\testGetRevisionTextUtf8Native(), RevisionTest\testGetRevisionTextUtf8NativeGzip(), and XmlDumpWriter\writeRevision().
Revision::getSerializedData | ( | ) |
Get original serialized data (without checking view restrictions)
Definition at line 1081 of file Revision.php.
References $mText, and loadText().
Referenced by getContentInternal().
Revision::getSha1 | ( | ) |
Returns the base36 sha1 of the text in this revision, or null if unknown.
Definition at line 806 of file Revision.php.
References $mSha1.
Referenced by RevisionStorageTest\assertRevEquals(), and ApiQueryRevisionsBase\extractRevisionInfo().
Revision::getSize | ( | ) |
Returns the length of the text in this revision, or null if unknown.
Definition at line 797 of file Revision.php.
References $mSize.
Referenced by ApiQueryRevisionsBase\extractRevisionInfo().
Revision::getTextId | ( | ) |
Get text row ID.
Definition at line 779 of file Revision.php.
References $mTextId.
Referenced by fetchText().
Revision::getTimestamp | ( | ) |
Definition at line 1186 of file Revision.php.
References wfTimestamp().
Referenced by CategoryMembershipChange\__construct(), RevisionStorageTest\assertRevEquals(), WikiPage\doEditUpdates(), ApiQueryRevisionsBase\extractRevisionInfo(), CategoryMembershipChangeJob\getExplicitCategoriesChanges(), and WikiPage\setLastEdit().
|
static |
Get rev_timestamp from rev_id, without loading the rest of the row.
Title | $title | |
int | $id | |
int | $flags |
Definition at line 1840 of file Revision.php.
References $flags, $title, DB_MASTER, DB_REPLICA, wfGetDB(), and wfTimestamp().
Referenced by ApiSetNotificationTimestamp\execute(), and Skin\lastModified().
Revision::getTitle | ( | ) |
Returns the title of the page associated with this entry or null.
Will do a query, when title is not set and id is given.
Definition at line 817 of file Revision.php.
References $dbr, $mTitle, DB_REPLICA, Title\newFromID(), Title\newFromRow(), wfGetLB(), and wfWikiID().
Referenced by checkContentModel(), ApiQueryRevisionsBase\extractRevisionInfo(), getContentModel(), getNext(), getPrevious(), insertOn(), and BenchmarkParse\runParser().
Revision::getUser | ( | $audience = self::FOR_PUBLIC , |
|
User | $user = null |
||
) |
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.
int | $audience | One of: Revision::FOR_PUBLIC to be displayed to all users Revision::FOR_THIS_USER to be displayed to the given user Revision::RAW get the ID regardless of permissions |
User | null | $user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 877 of file Revision.php.
References $mUser, $user, isDeleted(), and userCan().
Referenced by RevisionStorageTest\assertRevEquals(), ApiQueryRevisionsBase\extractRevisionInfo(), and getRawUser().
Revision::getUserText | ( | $audience = self::FOR_PUBLIC , |
|
User | $user = null |
||
) |
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.
int | $audience | One of: Revision::FOR_PUBLIC to be displayed to all users Revision::FOR_THIS_USER to be displayed to the given user Revision::RAW get the text regardless of permissions |
User | null | $user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 911 of file Revision.php.
References $mOrigUserText, $mUserText, $user, isDeleted(), loadMutableFields(), userCan(), and User\whoIs().
Referenced by ApiQueryRevisionsBase\extractRevisionInfo(), getRawUserText(), and getRecentChange().
Revision::getVisibility | ( | ) |
Get the deletion bitfield of the revision.
Definition at line 1045 of file Revision.php.
References $mDeleted, and loadMutableFields().
Referenced by isDeleted(), CategoryMembershipChange\notifyCategorization(), and userCan().
Revision::insertOn | ( | $dbw | ) |
Insert a new revision into the database, returning the new revision ID number on success and dies horribly on failure.
IDatabase | $dbw | (master connection) |
MWException |
Definition at line 1406 of file Revision.php.
References $flags, $mDeleted, $mId, $mPage, $mParentId, $mSha1, $mSize, $mText, $mTextId, $mUser, $mUserText, $title, $wgContentHandlerUseDB, $wgDefaultExternalStore, base36Sha1(), checkContentModel(), compressRevisionText(), getContentFormat(), getContentModel(), ContentHandler\getDefaultModelFor(), ContentHandler\getForModelID(), getPreviousRevisionId(), getTitle(), global, ExternalStore\insertToDefault(), IP\isValid(), list, CommentStore\newKey(), Hooks\run(), and IP\toHex().
Referenced by WikiPage\doCreate(), MergeHistory\merge(), MovePage\moveToInternal(), and RevisionStorageTest\testUserWasLastToEdit().
Revision::isCurrent | ( | ) |
Definition at line 1193 of file Revision.php.
References $mCurrent.
Referenced by DifferenceEngine\getParserOutput(), DifferenceEngine\getRevisionHeader(), and isDeleted().
Revision::isDeleted | ( | $field | ) |
int | $field | One of DELETED_* bitfield constants |
Definition at line 1029 of file Revision.php.
References getVisibility(), and isCurrent().
Referenced by ApiQueryRevisionsBase\extractRevisionInfo(), getComment(), getContent(), getUser(), and getUserText().
Revision::isMinor | ( | ) |
Definition at line 979 of file Revision.php.
References $mMinorEdit.
Referenced by WikiPage\doEditUpdates(), and ApiQueryRevisionsBase\extractRevisionInfo().
Revision::isUnpatrolled | ( | ) |
Definition at line 986 of file Revision.php.
References $mUnpatrolled, and getRecentChange().
|
staticprivate |
Given a set of conditions, fetch a revision from the given database connection.
IDatabase | $db | |
array | $conditions | |
int | $flags | (optional) |
Definition at line 361 of file Revision.php.
References $flags, $rev, and fetchFromConds().
Referenced by loadFromId(), loadFromPageId(), loadFromTimestamp(), loadFromTitle(), newFromConds(), newFromPageId(), and newFromTitle().
|
static |
Load a page revision from a given revision ID number.
Returns null if no such revision can be found.
IDatabase | $db | |
int | $id |
Definition at line 250 of file Revision.php.
References loadFromConds().
|
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.
IDatabase | $db | |
int | $pageid | |
int | $id |
Definition at line 264 of file Revision.php.
References loadFromConds().
Referenced by newKnownCurrent(), and Maintenance\updateSearchIndexForPage().
|
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.
IDatabase | $db | |
Title | $title | |
string | $timestamp |
Definition at line 309 of file Revision.php.
References $title, and loadFromConds().
Referenced by AttachLatest\execute(), EditPage\getBaseRevision(), User\getNewMessageLinks(), and WikiPage\replaceSectionContent().
|
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.
IDatabase | $db | |
Title | $title | |
int | $id |
Definition at line 284 of file Revision.php.
References $title, and loadFromConds().
Referenced by EditPage\mergeChangesIntoContent().
|
private |
For cached revisions, make sure the user name and rev_deleted is up-to-date.
Definition at line 1964 of file Revision.php.
References $dbr, DB_REPLICA, and wfGetLB().
Referenced by getUserText(), and getVisibility().
|
private |
Lazy-load the revision's text.
Currently hardcoded to the 'text' table storage engine.
Definition at line 1629 of file Revision.php.
References $cache, fetchText(), ObjectCache\getMainWANInstance(), and TEXT_CACHE_GROUP.
Referenced by getSerializedData().
|
static |
Make a fake revision object from an archive table row.
This is queried for permissions or even inserted (as in Special:Undelete)
object | $row | |
array | $overrides |
MWException |
Definition at line 189 of file Revision.php.
References $attribs, $wgContentHandlerUseDB, DB_REPLICA, getRevisionText(), global, Title\makeTitle(), CommentStore\newKey(), and wfGetDB().
Referenced by RevDelArchiveItem\__construct(), RevDelArchivedRevisionItem\__construct(), DifferenceEngine\deletedLink(), SpecialUndelete\formatRevisionRow(), DeletedContribsPager\formatRow(), ApiComparePages\getDiffContent(), PageArchive\getRevision(), ApiComparePages\guessTitleAndModel(), ApiQueryDeletedRevisions\run(), ApiQueryAllDeletedRevisions\run(), RevisionStorageTest\testNewFromArchiveRow(), PageArchive\undeleteRevisions(), PopulateRevisionSha1\upgradeLegacyArchiveRow(), PopulateRevisionLength\upgradeRow(), and PopulateRevisionSha1\upgradeRow().
|
staticprivate |
Given a set of conditions, fetch a revision.
This method is used then a revision ID is qualified and will incorporate some basic replica DB/master fallback logic
array | $conditions | |
int | $flags | (optional) |
Definition at line 329 of file Revision.php.
References $flags, $rev, DB_MASTER, DB_REPLICA, loadFromConds(), wfGetDB(), and wfGetLB().
Referenced by newFromId(), newFromPageId(), and newFromTitle().
|
static |
Load a page revision from a given revision ID number.
Returns null if no such revision can be found.
$flags include: Revision::READ_LATEST : Select the data from the master Revision::READ_LOCKING : Select & lock the data from the master
int | $id | |
int | $flags | (optional) |
Definition at line 116 of file Revision.php.
References $flags, and newFromConds().
Referenced by SpecialComparePages\checkExistingRevision(), Orphans\checkSeparation(), User\clearNotification(), WikiPage\commitRollback(), EditPage\edit(), ApiComparePages\execute(), ApiExpandTemplates\execute(), ApiPatrol\execute(), CheckBadRedirects\execute(), ApiEditPage\execute(), ApiParse\execute(), ImportTextFiles\execute(), BenchmarkParse\execute(), SpecialNewpages\feedItemDesc(), Article\fetchContentObject(), FeedUtils\formatDiffRow(), EditPage\getBaseRevision(), EditPage\getContentObject(), ApiComparePages\getDiffContent(), Article\getOldIDFromRequest(), PageArchive\getPreviousRevision(), CategoryMembershipChange\getPreviousRevisionTimestamp(), ApiComparePages\guessTitleAndModel(), DifferenceEngine\loadRevisionData(), CategoryMembershipChangeJob\notifyUpdatesForRevision(), ApiQueryRevisionsBase\parseParameters(), MediaWiki\parseTitle(), WikiPage\prepareContentForEdit(), ApiTag\processIndividual(), WikiPage\replaceSectionAtRev(), RefreshLinksJob\runForTitle(), Article\setOldSubtitle(), SpecialComparePages\showDiff(), RevDelRevisionList\suggestTarget(), CategoryMembershipChangeTest\testChangeAddedWithRev(), CategoryMembershipChangeTest\testChangeRemovedWithRev(), RevisionStorageTest\testGetContent(), RevisionStorageTest\testGetContentFormat(), RevisionStorageTest\testGetContentModel(), RevisionStorageTest\testGetPage(), ApiRevisionDeleteTest\testHidingRevisions(), RevisionStorageTest\testIsCurrent(), RevisionStorageTest\testNewFromId(), and ChangeTags\updateTagsWithChecks().
|
static |
Load either the current, or a specified, revision that's attached to a given page ID.
Returns null if no such revision can be found.
$flags include: Revision::READ_LATEST : Select the data from the master (since 1.20) Revision::READ_LOCKING : Select & lock the data from the master
int | $pageId | |
int | $revId | (optional) |
int | $flags | Bitfield (optional) |
Definition at line 165 of file Revision.php.
References $flags, DB_MASTER, DB_REPLICA, loadFromConds(), newFromConds(), and wfGetDB().
Referenced by NamespaceConflictChecker\canMerge(), ApiStashEdit\execute(), and WikiPage\loadLastEdit().
|
static |
object | $row |
Definition at line 238 of file Revision.php.
Referenced by ApiFeedContributions\feedItem(), BaseBlacklist\getArticleText(), ApiQueryAllRevisions\run(), CategoryMembershipChangeJob\run(), and RevisionStorageTest\testNewFromRow().
|
static |
Load either the current, or a specified, revision that's attached to a given link target.
If not attached to that link target, will return null.
$flags include: Revision::READ_LATEST : Select the data from the master Revision::READ_LOCKING : Select & lock the data from the master
LinkTarget | $linkTarget | |
int | $id | (optional) |
int | $flags | Bitfield (optional) |
Definition at line 134 of file Revision.php.
References $flags, DB_MASTER, DB_REPLICA, MediaWiki\Linker\LinkTarget\getDBkey(), MediaWiki\Linker\LinkTarget\getNamespace(), loadFromConds(), newFromConds(), and wfGetDB().
Referenced by NamespaceConflictChecker\canMerge(), cleanupArticle(), CleanupSpam\cleanupArticle(), Title\countRevisionsBetween(), PoolWorkArticleView\doWork(), ApiEditPage\execute(), GetTextMaint\execute(), BenchmarkParse\execute(), MediaWikiGadgetsDefinitionRepo\fetchStructuredList(), Title\getAuthorsBetween(), ContentHandler\getAutoDeleteReason(), LocalFile\getDescriptionText(), GadgetDefinitionNamespaceRepo\getGadget(), Skin\getNewtalks(), getNext(), getPrevious(), RawAction\getRawText(), FixDefaultJsonContentPages\handleRow(), SearchResult\initFromTitle(), InfoAction\invalidateCache(), MovePage\isValidMoveTarget(), Title\isValidMoveTarget(), DifferenceEngine\loadRevisionData(), SimpleCaptcha\loadText(), DoubleRedirectJob\run(), RefreshLinksJob\runForTitle(), SpecialCiteThisPage\showCitations(), SpecialBookSources\showList(), ApiQueryWatchlistIntegrationTest\testCategorizeTypeParameter(), and SpecialChangeContentModel\validateTitle().
|
static |
Load a revision based on a known page ID and current revision ID from the DB.
This method allows for the use of caching, though accessing anything that normally requires permission checks (aside from the text) will trigger a small DB lookup. The title will also be lazy loaded, though setTitle() can be used to preload it.
IDatabase | $db | |
int | $pageId | Page ID |
int | $revId | Known current revision of this page |
Definition at line 1940 of file Revision.php.
References $cache, $rev, array(), Wikimedia\Rdbms\IDatabase\getDomainID(), loadFromPageId(), and use.
Referenced by ResourceLoaderWikiModule\getContentObj(), MessageCache\getMsgFromNamespace(), and WikiPage\loadLastEdit().
|
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.
IDatabase | $dbw | |
int | $pageId | ID number of the page to read from |
string | $summary | Revision's summary |
bool | $minor | Whether the revision should be considered as minor |
User | null | $user | User object to use or null for $wgUser |
Definition at line 1715 of file Revision.php.
References $user, $wgContentHandlerUseDB, $wgUser, global, and Title\makeTitle().
Referenced by WikiPage\insertProtectNullRevision(), MovePage\moveToInternal(), LocalFile\recordUpload2(), ImportReporter\reportPage(), and RevisionStorageTest\testNewNullRevision().
|
static |
Return the value of a select() page conds array for the page table.
This will assure that the revision(s) are not orphaned from live pages.
Definition at line 441 of file Revision.php.
Referenced by ChangeTagsRevisionList\doQuery(), RevDelRevisionList\doQuery(), RevisionList\doQuery(), MergeHistoryPager\getQueryInfo(), and ContribsPager\getQueryInfo().
|
static |
Return the list of revision fields that should be selected to create a new revision from an archive row.
Definition at line 486 of file Revision.php.
References $wgContentHandlerUseDB, global, and CommentStore\newKey().
Referenced by DifferenceEngine\deletedLink(), PopulateRevisionLength\doDBUpdates(), RevDelArchiveList\doQuery(), RevDelRevisionList\doQuery(), ApiComparePages\getDiffContent(), ApiComparePages\guessTitleAndModel(), ApiQueryDeletedRevisions\run(), ApiQueryAllDeletedRevisions\run(), and RevisionStorageTest\testNewFromArchiveRow().
|
static |
Return the list of revision fields that should be selected to create a new revision.
Definition at line 452 of file Revision.php.
References $wgContentHandlerUseDB, global, and CommentStore\newKey().
Referenced by PopulateRevisionLength\doDBUpdates(), WikiPage\doDeleteArticleReal(), ChangeTagsRevisionList\doQuery(), RevDelRevisionList\doQuery(), RevisionList\doQuery(), HistoryAction\fetchRevisions(), BaseBlacklist\getArticleText(), Title\getFirstRevision(), MergeHistoryPager\getQueryInfo(), ContribsPager\getQueryInfo(), HistoryPager\getQueryInfo(), RebuildTextIndex\populateSearchIndex(), ApiQueryAllRevisions\run(), CategoryMembershipChangeJob\run(), ApiQueryRevisions\run(), RevisionStorageTest\testConstructFromRow(), RevisionStorageTest\testNewFromRow(), RevisionTestContentHandlerUseDB\testSelectFields(), and RevisionStorageTest\testSelectFields().
|
static |
Return the list of page fields that should be selected from page table.
Definition at line 529 of file Revision.php.
Referenced by BaseBlacklist\getArticleText(), RebuildTextIndex\populateSearchIndex(), ApiQueryAllRevisions\run(), and ApiQueryRevisions\run().
|
static |
Return the list of text fields that should be selected to read the revision text.
Definition at line 518 of file Revision.php.
Referenced by BaseBlacklist\getArticleText(), RebuildTextIndex\populateSearchIndex(), ApiQueryAllRevisions\run(), and ApiQueryRevisions\run().
|
static |
Return the list of user fields that should be selected from user table.
Definition at line 544 of file Revision.php.
Referenced by ChangeTagsRevisionList\doQuery(), RevDelRevisionList\doQuery(), RevisionList\doQuery(), MergeHistoryPager\getQueryInfo(), ContribsPager\getQueryInfo(), HistoryPager\getQueryInfo(), and ApiQueryRevisions\run().
Revision::setId | ( | $id | ) |
Set the revision ID.
This should only be used for proposed revisions that turn out to be null edits
int | $id |
Definition at line 755 of file Revision.php.
Revision::setTitle | ( | $title | ) |
Set the title of the revision.
Title | $title |
Definition at line 851 of file Revision.php.
References $title.
Revision::setUserIdAndName | ( | $id, | |
$name | |||
) |
Set the user ID/name.
This should only be used for proposed revisions that turn out to be null edits
Definition at line 768 of file Revision.php.
References $name.
Revision::userCan | ( | $field, | |
User | $user = null |
||
) |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted.
int | $field | One of self::DELETED_TEXT, self::DELETED_COMMENT, self::DELETED_USER |
User | null | $user | User object to check, or null to use $wgUser |
Definition at line 1780 of file Revision.php.
References $user, getVisibility(), and userCanBitfield().
Referenced by ApiQueryRevisionsBase\extractRevisionInfo(), getComment(), getContent(), getUser(), and getUserText().
|
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.
int | $bitfield | Current field |
int | $field | One of self::DELETED_TEXT = File::DELETED_FILE, self::DELETED_COMMENT = File::DELETED_COMMENT, self::DELETED_USER = File::DELETED_USER |
User | null | $user | User object to check, or null to use $wgUser |
Title | null | $title | A Title object to check for per-page restrictions on, instead of just plain userrights |
Definition at line 1798 of file Revision.php.
References $title, $user, $wgUser, as, global, and wfDebug().
Referenced by ApiQueryDeletedrevs\execute(), ApiQueryFilearchive\execute(), ApiQueryWatchlist\extractOutputData(), ApiQueryContributions\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), OldLocalFile\userCan(), ArchivedFile\userCan(), ChangesList\userCan(), and userCan().
|
static |
Return the value of a select() JOIN conds array for the user table.
This will get user table rows for logged-in users.
Definition at line 431 of file Revision.php.
Referenced by ChangeTagsRevisionList\doQuery(), RevDelRevisionList\doQuery(), RevisionList\doQuery(), MergeHistoryPager\getQueryInfo(), ContribsPager\getQueryInfo(), HistoryPager\getQueryInfo(), and ApiQueryRevisions\run().
|
static |
Check if no edits were made by other users since the time a user started editing the page.
Limit to 50 revisions for the sake of performance.
IDatabase | int | $db | The Database to perform the check on. May be given as a Database object or a database identifier usable with wfGetDB. |
int | $pageId | The ID of the page in question |
int | $userId | The ID of the user in question |
string | $since | Look at edits since this time |
Definition at line 1902 of file Revision.php.
References $res, as, and wfGetDB().
Referenced by EditPage\internalAttemptSave(), and RevisionStorageTest\testUserWasLastToEdit().
|
protected |
Definition at line 57 of file Revision.php.
Referenced by getComment().
|
protected |
Definition at line 78 of file Revision.php.
|
protected |
Definition at line 75 of file Revision.php.
Referenced by getContentFormat().
|
protected |
Definition at line 80 of file Revision.php.
Referenced by getContentHandler().
|
protected |
Definition at line 73 of file Revision.php.
Referenced by getContentModel().
|
protected |
Definition at line 71 of file Revision.php.
Referenced by isCurrent().
|
protected |
Definition at line 49 of file Revision.php.
Referenced by getVisibility(), and insertOn().
|
protected |
Definition at line 35 of file Revision.php.
Referenced by checkContentModel(), getId(), and insertOn().
|
protected |
Definition at line 45 of file Revision.php.
Referenced by isMinor().
|
protected |
Definition at line 41 of file Revision.php.
Referenced by getUserText().
|
protected |
Definition at line 37 of file Revision.php.
Referenced by __construct(), getPage(), and insertOn().
|
protected |
Definition at line 55 of file Revision.php.
Referenced by getParentId(), and insertOn().
|
protected |
Definition at line 83 of file Revision.php.
Referenced by fetchText().
|
protected |
Used for cached values to reload user text and rev_deleted.
Definition at line 85 of file Revision.php.
|
protected |
Definition at line 53 of file Revision.php.
Referenced by getSha1(), and insertOn().
|
protected |
Definition at line 51 of file Revision.php.
Referenced by getSize(), and insertOn().
|
protected |
Definition at line 59 of file Revision.php.
Referenced by getSerializedData(), and insertOn().
|
protected |
Definition at line 61 of file Revision.php.
Referenced by getTextId(), and insertOn().
|
protected |
Definition at line 66 of file Revision.php.
Referenced by fetchText().
|
protected |
Definition at line 47 of file Revision.php.
|
protected |
Definition at line 69 of file Revision.php.
Referenced by getTitle().
|
protected |
Definition at line 63 of file Revision.php.
Referenced by isUnpatrolled().
|
protected |
Definition at line 43 of file Revision.php.
Referenced by getUser(), and insertOn().
|
protected |
Definition at line 39 of file Revision.php.
Referenced by getUserText(), and insertOn().
Wiki ID; false means the current wiki.
Definition at line 87 of file Revision.php.
const Revision::DELETED_COMMENT = 2 |
Definition at line 91 of file Revision.php.
Referenced by ApiComparePagesTest\addDBDataOnce(), ApiRevisionDelete\execute(), ApiQueryDeletedrevs\execute(), SpecialRevisionDelete\execute(), ApiQueryWatchlist\extractOutputData(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiQueryContributions\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), FeedUtils\formatDiff(), RevDelArchivedFileItem\getApiData(), RevDelRevisionItem\getApiData(), RevDelFileItem\getApiData(), RevisionDeleter\getChanges(), DeleteLogFormatter\getParametersForApi(), ChangesList\insertComment(), Linker\revComment(), ApiComparePages\setVals(), and XmlDumpWriter\writeRevision().
const Revision::DELETED_RESTRICTED = 8 |
Definition at line 93 of file Revision.php.
Referenced by ApiComparePagesTest\addDBDataOnce(), SpecialRevisionDelete\buildCheckBoxes(), RevDelLogItem\canView(), ChangeTagsLogItem\canView(), RevDelRevisionItem\canView(), RevisionItem\canView(), ApiRevisionDelete\execute(), ApiQueryDeletedrevs\execute(), SpecialRevisionDelete\execute(), SpecialRevisionDelete\extractBitParams(), ApiQueryWatchlist\extractOutputData(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiQueryContributions\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), RevisionDeleter\getChanges(), DeleteLogFormatter\getParametersForApi(), ApiParse\getParsedContent(), Linker\getRevDeleteLink(), RevDelLogList\getSuppressBit(), RevDelRevisionList\getSuppressBit(), WatchedItemQueryService\getUserRelatedConds(), HistoryPager\historyLine(), ApiQueryContributions\prepareQuery(), ApiQueryDeletedRevisions\run(), ApiQueryAllRevisions\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryRevisions\run(), ApiQueryRecentChanges\run(), RevisionDeleteUser\setUsernameBitfields(), ApiComparePages\setVals(), RevDelList\setVisibility(), Article\showDeletedRevisionHeader(), DifferenceEngine\showDiffPage(), SpecialUndelete\showRevision(), SpecialRevisionDelete\submit(), and WatchedItemQueryServiceUnitTest\userPermissionRelatedExtraChecksProvider().
const Revision::DELETED_TEXT = 1 |
Definition at line 90 of file Revision.php.
Referenced by ApiParseTest\addDBDataOnce(), ApiComparePagesTest\addDBDataOnce(), RevDelRevisionItem\canViewContent(), RevisionItem\canViewContent(), CleanupSpam\cleanupArticle(), WikiPage\commitRollback(), HistoryPager\curLink(), HistoryPager\diffButtons(), ApiEditPage\execute(), ApiQueryDeletedrevs\execute(), ApiParse\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiQueryContributions\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), DeletedContribsPager\formatRevisionRow(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), ContribsPager\formatRow(), RevDelRevisionItem\getApiData(), ChangesList\getArticleLink(), RevisionDeleter\getChanges(), EditPage\getContentObject(), DifferenceEngine\getDiffBody(), EnhancedChangesList\getLineData(), EnhancedChangesList\getLogText(), SpecialUndelete\getPageLink(), DeleteLogFormatter\getParametersForApi(), ApiParse\getParsedContent(), RevDelRevisionList\getRevdelConstant(), DifferenceEngine\getRevisionHeader(), Linker\getRollbackEditCount(), HistoryPager\historyLine(), ChangesList\insertDiffHist(), RevDelRevisionItem\isDeleted(), RevisionItem\isDeleted(), RevDelRevisionItem\isHideCurrentOp(), HistoryPager\lastLink(), ApiQueryRevisionsBase\parseParameters(), HistoryPager\revLink(), ApiComparePages\setVals(), Article\showDeletedRevisionHeader(), RCCacheEntryFactory\showDiffLinks(), DifferenceEngine\showDiffPage(), EditPage\showHeader(), SpecialUndelete\showRevision(), PageArchive\undeleteRevisions(), and XmlDumpWriter\writeRevision().
const Revision::DELETED_USER = 4 |
Definition at line 92 of file Revision.php.
Referenced by ApiComparePagesTest\addDBDataOnce(), ChangesFeed\buildItems(), WikiPage\commitRollback(), WikiExporter\do_list_authors(), ApiRevisionDelete\execute(), ApiQueryDeletedrevs\execute(), ApiQueryContributors\execute(), SpecialRevisionDelete\execute(), ApiQueryWatchlist\extractOutputData(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiQueryContributions\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), DeletedContribsPager\formatRevisionRow(), ContribsPager\formatRow(), RevDelArchivedFileItem\getApiData(), RevDelRevisionItem\getApiData(), RevDelFileItem\getApiData(), ContentHandler\getAutoDeleteReason(), RevisionDeleter\getChanges(), DeleteLogFormatter\getParametersForApi(), DeletedContribsPager\getQueryInfo(), ContribsPager\getQueryInfo(), Linker\getRollbackEditCount(), RCCacheEntryFactory\getUserLink(), WatchedItemQueryService\getUserRelatedConds(), RevDelFileItem\getUserTools(), ChangesList\insertUserRelatedLinks(), RCCacheEntryFactory\newFromRecentChange(), ApiQueryContributions\prepareQuery(), Linker\revUserLink(), Linker\revUserTools(), ApiQueryDeletedRevisions\run(), ApiQueryAllRevisions\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryRevisions\run(), ApiQueryRecentChanges\run(), RevisionDeleteUser\setUsernameBitfields(), ApiComparePages\setVals(), WatchedItemQueryServiceUnitTest\userPermissionRelatedExtraChecksProvider(), and XmlDumpWriter\writeRevision().
const Revision::FOR_PUBLIC = 1 |
Definition at line 98 of file Revision.php.
Referenced by RevisionTest\dataGetContent(), GetTextMaint\execute(), and ApiRevisionDeleteTest\testHidingRevisions().
const Revision::FOR_THIS_USER = 2 |
Definition at line 99 of file Revision.php.
Referenced by ApiComparePages\execute(), ApiEditPage\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), Article\fetchContentObject(), RevDelRevisionItem\getApiData(), ApiComparePages\getDiffContent(), EditPage\getOriginalContent(), ApiParse\getParsedContent(), DifferenceEngine\loadNewText(), DifferenceEngine\loadText(), RollbackAction\onView(), InfoAction\pageInfo(), Linker\revComment(), Linker\revUserLink(), Linker\revUserTools(), SpecialUndelete\showDiff(), and SpecialUndelete\showRevision().
const Revision::RAW = 3 |
Definition at line 100 of file Revision.php.
Referenced by CategoryMembershipChangeTest\addDBDataOnce(), CleanupSpam\cleanupArticle(), WikiPage\commitRollback(), WikiPage\doDeleteArticleReal(), WikiPage\doEditContent(), WikiPage\doModify(), PoolWorkArticleView\doWork(), CompareParserCache\execute(), ViewCLI\execute(), ApiPurge\execute(), GetTextMaint\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), RefreshLinks\fixLinksFromArticle(), RefreshLinks\fixRedirect(), Title\getAuthorsBetween(), ResourceLoaderWikiModule\getContentObj(), EditPage\getContentObject(), EditPage\getCurrentContent(), WikiPage\getDeletionUpdates(), DifferenceEngine\getMultiNotice(), EditPage\getPreloadedContent(), Linker\getRollbackEditCount(), CategoryMembershipChange\getUser(), FixDefaultJsonContentPages\handleRow(), CheckStorage\importRevision(), WikiPage\prepareContentForEdit(), PreprocessDump\processRevision(), Linker\revComment(), RefreshLinksJob\runForTitle(), ApiComparePages\setVals(), ApiEditPageTest\testEditNewSection(), ApiEditPageTest\testEditSection(), RevisionTest\testGetContentClone(), RevisionTest\testGetContentUncloned(), and PageArchive\undeleteRevisions().
const Revision::SUPPRESSED_ALL = 15 |
Definition at line 95 of file Revision.php.
Referenced by LocalFileDeleteBatch\doDBInserts(), and WikiPage\doDeleteArticleReal().
const Revision::SUPPRESSED_USER = 12 |
Definition at line 94 of file Revision.php.
Referenced by DeletedContribsPager\getQueryInfo(), ContribsPager\getQueryInfo(), and CategoryMembershipChange\notifyCategorization().
const Revision::TEXT_CACHE_GROUP = 'revisiontext:10' |
Definition at line 102 of file Revision.php.
Referenced by getRevisionText(), and loadText().