MediaWiki
REL1_19
|
Public Member Functions | |
__construct ($row) | |
Constructor. | |
getComment ($audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision comment if it's available to the specified audience. | |
getId () | |
Get revision ID. | |
getNext () | |
Get next revision for this title. | |
getPage () | |
Get the page ID. | |
getParentId () | |
Get parent revision ID (the original previous page revision) | |
getPrevious () | |
Get previous revision for this title. | |
getRawComment () | |
Fetch revision comment without regard for the current user's permissions. | |
getRawText () | |
Fetch revision text without regard for view restrictions. | |
getRawUser () | |
Fetch revision's user id without regard for the current user's permissions. | |
getRawUserText () | |
Fetch revision's username without regard for view restrictions. | |
getSha1 () | |
Returns the base36 sha1 of the text in this revision, or null if unknown. | |
getSize () | |
Returns the length of the text in this revision, or null if unknown. | |
getText ($audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision text if it's available to the specified audience. | |
getTextId () | |
Get text row ID. | |
getTimestamp () | |
getTitle () | |
Returns the title of the page associated with this entry. | |
getUser ($audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision's user id if it's available to the specified audience. | |
getUserText ($audience=self::FOR_PUBLIC, User $user=null) | |
Fetch revision's username if it's available to the specified audience. | |
getVisibility () | |
Get the deletion bitfield of the revision. | |
insertOn ($dbw) | |
Insert a new revision into the database, returning the new revision ID number on success and dies horribly on failure. | |
isCurrent () | |
isDeleted ($field) | |
isMinor () | |
isUnpatrolled () | |
revText () | |
Alias for getText(Revision::FOR_THIS_USER) | |
setId ($id) | |
Set the revision ID. | |
setTitle ($title) | |
Set the title of the 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. | |
Static Public Member Functions | |
static | base36Sha1 ($text) |
Get the base 36 SHA-1 value for a string of text. | |
static | compressRevisionText (&$text) |
If $wgCompressRevisions is enabled, we will compress data. | |
static | countByPageId ($db, $id) |
Get count of revisions per page...not very efficient. | |
static | countByTitle ($db, $title) |
Get count of revisions per page...not very efficient. | |
static | fetchRevision ($title) |
Return a wrapper for a series of database rows to fetch all of a given page's revisions in turn. | |
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 | getTimestampFromId ($title, $id) |
Get rev_timestamp from rev_id, without loading the rest of the 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 | loadFromTimestamp ($db, $title, $timestamp) |
Load the revision for the given title with the given timestamp. | |
static | loadFromTitle ($db, $title, $id=0) |
Load either the current, or a specified, revision that's attached to a given page. | |
static | newFromArchiveRow ($row, $overrides=array()) |
Make a fake revision object from an archive table row. | |
static | newFromConds ($conditions) |
Given a set of conditions, fetch a revision. | |
static | newFromId ($id) |
Load a page revision from a given revision ID number. | |
static | newFromPageId ($pageId, $revId=0) |
Load either the current, or a specified, revision that's attached to a given page ID. | |
static | newFromRow ($row) |
static | newFromTitle ($title, $id=0) |
Load either the current, or a specified, revision that's attached to a given title. | |
static | newNullRevision ($dbw, $pageId, $summary, $minor) |
Create a new null-revision for insertion into a page's history. | |
static | pageJoinCond () |
Return the value of a select() page conds array for the paeg table. | |
static | selectFields () |
Return the list of revision fields that should be selected to create a new revision. | |
static | selectPageFields () |
Return the list of page fields that should be selected from page table. | |
static | selectTextFields () |
Return the list of text fields that should be selected to read the revision text. | |
static | selectUserFields () |
Return the list of user fields that should be selected from user table. | |
static | userCanBitfield ($bitfield, $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. | |
static | userJoinCond () |
Return the value of a select() JOIN conds array for the user table. | |
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_USER = 12 |
Protected Member Functions | |
loadText () | |
Lazy-load the revision's text. | |
Protected Attributes | |
$mComment | |
$mCurrent | |
$mDeleted | |
$mId | |
$mMinorEdit | |
$mOrigUserText | |
$mPage | |
$mParentId | |
$mSha1 | |
$mSize | |
$mText | |
$mTextRow | |
$mTimestamp | |
$mTitle | |
$mUser | |
$mUserText | |
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 | 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. | |
static | loadFromConds ($db, $conditions) |
Given a set of conditions, fetch a revision from the given database connection. |
Definition at line 6 of file Revision.php.
Revision::__construct | ( | $ | row | ) |
Constructor.
$row | Mixed: either a database row or an array |
Definition at line 378 of file Revision.php.
References $wgUser, base36Sha1(), newFromRow(), and wfTimestampNow().
static Revision::base36Sha1 | ( | $ | text | ) | [static] |
Get the base 36 SHA-1 value for a string of text.
$text | String |
Definition at line 1016 of file Revision.php.
References wfBaseConvert().
Referenced by __construct(), insertOn(), PopulateRevisionSha1\upgradeLegacyArchiveRow(), and PopulateRevisionSha1\upgradeRow().
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 916 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 1201 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 1217 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 | DatabaseBase |
$conditions | Array |
Definition at line 285 of file Revision.php.
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 267 of file Revision.php.
References $title, fetchFromConds(), and wfGetDB().
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.
$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 |
$user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 649 of file Revision.php.
References $user, isDeleted(), and userCan().
Referenced by Linker\revComment().
Revision::getId | ( | ) |
Get revision ID.
Definition at line 474 of file Revision.php.
Referenced by WikiPage\doEditUpdates(), getNext(), getPrevious(), and isUnpatrolled().
Get next revision for this title.
Definition at line 795 of file Revision.php.
References getId(), getTitle(), and newFromTitle().
Get parent revision ID (the original previous page revision)
Definition at line 502 of file Revision.php.
Get previous revision for this title.
Definition at line 780 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 812 of file Revision.php.
Referenced by insertOn().
Fetch revision comment without regard for the current user's permissions.
Definition at line 664 of file Revision.php.
Referenced by Linker\revComment().
Fetch revision text without regard for view restrictions.
Definition at line 753 of file Revision.php.
References loadText().
Referenced by getText().
Fetch revision's user id without regard for the current user's permissions.
Definition at line 592 of file Revision.php.
Fetch revision's username without regard for view restrictions.
Definition at line 624 of file Revision.php.
References User\whoIs().
Referenced by getUserText(), and 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 839 of file Revision.php.
References $url, $wgContLang, $wgLegacyEncoding, ExternalStore\fetchFromURL(), wfProfileIn(), and wfProfileOut().
Referenced by CompressOld\compressWithConcat(), FetchText\doGetText(), RecompressTracked\doOrphanList(), RecompressTracked\doPage(), ApiQueryDeletedrevs\execute(), TextPassDumper\getTextDb(), PageArchive\getTextFromRow(), 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().
Returns the base36 sha1 of the text in this revision, or null if unknown.
Definition at line 520 of file Revision.php.
Returns the length of the text in this revision, or null if unknown.
Definition at line 511 of file Revision.php.
Revision::getText | ( | $ | audience = self::FOR_PUBLIC , |
User $ | user = null |
||
) |
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 |
$user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 727 of file Revision.php.
References $user, getRawText(), isDeleted(), and userCan().
Referenced by WikiPage\doEditUpdates(), WikiPage\getUndoText(), and revText().
Get text row ID.
Definition at line 493 of file Revision.php.
Referenced by loadText().
Definition at line 764 of file Revision.php.
References wfTimestamp().
Referenced by DifferenceEngine\getRevisionHeader(), and WikiPage\setLastEdit().
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 1177 of file Revision.php.
References $dbr, $title, wfGetDB(), wfGetLB(), and wfTimestamp().
Referenced by Skin\lastModified().
Returns the title of the page associated with this entry.
Definition at line 529 of file Revision.php.
References $dbr, newFromRow(), and wfGetDB().
Referenced by getNext(), getPrevious(), DifferenceEngine\getRevisionHeader(), and Linker\revComment().
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.
$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 |
$user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 577 of file Revision.php.
References $user, isDeleted(), and userCan().
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.
$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 |
$user | User object to check for, only if FOR_THIS_USER is passed to the $audience parameter |
Definition at line 609 of file Revision.php.
References $user, getRawUserText(), isDeleted(), 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.
$dbw | DatabaseBase: (master connection) |
Definition at line 942 of file Revision.php.
References $wgDefaultExternalStore, base36Sha1(), compressRevisionText(), getPreviousRevisionId(), ExternalStore\insertToDefault(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Referenced by WikiPage\doQuickEdit().
Definition at line 771 of file Revision.php.
Referenced by DifferenceEngine\getRevisionHeader().
Revision::isDeleted | ( | $ | field | ) |
$field | int one of DELETED_* bitfield constants |
Definition at line 701 of file Revision.php.
Referenced by getComment(), DifferenceEngine\getRevisionHeader(), getText(), getUser(), getUserText(), and Linker\revComment().
Definition at line 671 of file Revision.php.
Referenced by WikiPage\doEditUpdates().
Definition at line 678 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 | DatabaseBase |
$conditions | Array |
Definition at line 246 of file Revision.php.
References $res, and fetchFromConds().
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 157 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 171 of file Revision.php.
References loadFromConds().
Referenced by Maintenance\updateSearchIndexForPage().
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.
$db | DatabaseBase |
$title | Title |
$timestamp | String |
Definition at line 214 of file Revision.php.
References $title, and loadFromConds().
Referenced by AttachLatest\execute(), EditPage\getBaseRevision(), and WikiPage\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 191 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 1026 of file Revision.php.
References $dbr, $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)
$row | |
$overrides | array |
Definition at line 115 of file Revision.php.
References getRevisionText().
Referenced by RevDel_ArchiveItem\__construct(), RevDel_ArchivedRevisionItem\__construct(), DifferenceEngine\deletedLink(), SpecialUndelete\formatRevisionRow(), PageArchive\getRevision(), PageArchive\undeleteRevisions(), PopulateRevisionSha1\upgradeLegacyArchiveRow(), and PopulateRevisionSha1\upgradeRow().
static Revision::newFromConds | ( | $ | conditions | ) | [static] |
Given a set of conditions, fetch a revision.
$conditions | Array |
Definition at line 228 of file Revision.php.
References loadFromConds(), wfGetDB(), and wfGetLB().
Referenced by newFromId(), newFromPageId(), 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 42 of file Revision.php.
References newFromConds().
Referenced by SpecialComparePages\checkExistingRevision(), Orphans\checkSeparation(), WikiPage\commitRollback(), CheckBadRedirects\execute(), SpecialRevisionDelete\execute(), SpecialNewpages\feedItemDesc(), Article\fetchContent(), FeedUtils\formatDiffRow(), EditPage\getContent(), Article\getOldIDFromRequest(), PageArchive\getPreviousRevision(), Parser\getRevisionObject(), DifferenceEngine\loadRevisionData(), MediaWiki\parseTitle(), Article\setOldSubtitle(), and Parser\statelessFetchTemplate().
static Revision::newFromPageId | ( | $ | pageId, |
$ | revId = 0 |
||
) | [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.
$revId | Integer |
$pageId | Integer (optional) |
Definition at line 87 of file Revision.php.
References newFromConds(), wfGetDB(), and wfGetLB().
Referenced by WikiPage\loadLastEdit().
static Revision::newFromRow | ( | $ | row | ) | [static] |
$row |
Definition at line 145 of file Revision.php.
Referenced by __construct(), ApiFeedContributions\feedItem(), and getTitle().
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 (optional) |
Definition at line 55 of file Revision.php.
References $title, newFromConds(), wfGetDB(), and wfGetLB().
Referenced by CleanupSpam\cleanupArticle(), Title\countAuthorsBetween(), Title\countRevisionsBetween(), PoolWorkArticleView\doWork(), GetTextMaint\execute(), ApiEditPage\execute(), RefreshLinks\fixLinksFromArticle(), ResourceLoaderWikiModule\getContent(), LocalFile\getDescriptionText(), MessageCache\getMsgFromNamespace(), getNext(), getPrevious(), RawAction\getRawText(), Title\isValidMoveTarget(), DifferenceEngine\loadRevisionData(), CoreParserFunctions\pagesize(), LanguageConverter\parseCachedTable(), RefreshLinksJob\run(), DoubleRedirectJob\run(), RefreshLinksJob2\run(), SpecialBookSources\showList(), Parser\statelessFetchTemplate(), and UploadFromUrlTest\testLeaveMessage().
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 1094 of file Revision.php.
References wfProfileIn(), and wfProfileOut().
Referenced by WikiPage\doUpdateRestrictions(), Title\moveToInternal(), LocalFile\recordUpload2(), and ImportReporter\reportPage().
static Revision::pageJoinCond | ( | ) | [static] |
Return the value of a select() page conds array for the paeg table.
This will assure that the revision(s) are not orphaned from live pages.
Definition at line 317 of file Revision.php.
Referenced by RevDel_RevisionList\doQuery(), RevisionList\doQuery(), MergeHistoryPager\getQueryInfo(), and ContribsPager\getQueryInfo().
Alias for getText(Revision::FOR_THIS_USER)
Definition at line 743 of file Revision.php.
References getText(), and wfDeprecated().
static Revision::selectFields | ( | ) | [static] |
Return the list of revision fields that should be selected to create a new revision.
Definition at line 325 of file Revision.php.
Referenced by PopulateRevisionLength\doDBUpdates(), RevDel_RevisionList\doQuery(), RevisionList\doQuery(), ApiQueryRevisions\execute(), HistoryAction\fetchRevisions(), HistoryPager\getQueryInfo(), MergeHistoryPager\getQueryInfo(), and ContribsPager\getQueryInfo().
static Revision::selectPageFields | ( | ) | [static] |
Return the list of page fields that should be selected from page table.
Definition at line 356 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 346 of file Revision.php.
Referenced by ApiQueryRevisions\execute().
static Revision::selectUserFields | ( | ) | [static] |
Return the list of user fields that should be selected from user table.
Definition at line 368 of file Revision.php.
Referenced by RevDel_RevisionList\doQuery(), RevisionList\doQuery(), HistoryPager\getQueryInfo(), MergeHistoryPager\getQueryInfo(), and ContribsPager\getQueryInfo().
Revision::setId | ( | $ | id | ) |
Revision::setTitle | ( | $ | title | ) |
Set the title of the revision.
$title | Title |
Definition at line 551 of file Revision.php.
References $title.
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.
$field | Integer:one of self::DELETED_TEXT, self::DELETED_COMMENT, self::DELETED_USER |
$user | User object to check, or null to use $wgUser |
Definition at line 1134 of file Revision.php.
References $user, and userCanBitfield().
Referenced by getComment(), DifferenceEngine\getRevisionHeader(), getText(), getUser(), getUserText(), and Linker\revComment().
static Revision::userCanBitfield | ( | $ | bitfield, |
$ | field, | ||
User $ | user = null |
||
) | [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 |
$user | User object to check, or null to use $wgUser |
Definition at line 1150 of file Revision.php.
References $user, $wgUser, and wfDebug().
Referenced by OldLocalFile\userCan(), ChangesList\userCan(), ArchivedFile\userCan(), and userCan().
static Revision::userJoinCond | ( | ) | [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 307 of file Revision.php.
Referenced by RevDel_RevisionList\doQuery(), RevisionList\doQuery(), HistoryPager\getQueryInfo(), MergeHistoryPager\getQueryInfo(), and ContribsPager\getQueryInfo().
Revision::$mComment [protected] |
Definition at line 18 of file Revision.php.
Revision::$mCurrent [protected] |
Definition at line 22 of file Revision.php.
Revision::$mDeleted [protected] |
Definition at line 14 of file Revision.php.
Revision::$mId [protected] |
Definition at line 7 of file Revision.php.
Revision::$mMinorEdit [protected] |
Definition at line 12 of file Revision.php.
Revision::$mOrigUserText [protected] |
Definition at line 10 of file Revision.php.
Revision::$mPage [protected] |
Definition at line 8 of file Revision.php.
Revision::$mParentId [protected] |
Definition at line 17 of file Revision.php.
Revision::$mSha1 [protected] |
Definition at line 16 of file Revision.php.
Revision::$mSize [protected] |
Definition at line 15 of file Revision.php.
Revision::$mText [protected] |
Definition at line 19 of file Revision.php.
Revision::$mTextRow [protected] |
Definition at line 20 of file Revision.php.
Revision::$mTimestamp [protected] |
Definition at line 13 of file Revision.php.
Revision::$mTitle [protected] |
Definition at line 21 of file Revision.php.
Revision::$mUser [protected] |
Definition at line 11 of file Revision.php.
Revision::$mUserText [protected] |
Definition at line 9 of file Revision.php.
const Revision::DELETED_COMMENT = 2 |
Definition at line 25 of file Revision.php.
Referenced by LocalFileDeleteBatch\doDBInserts(), WikiPage\doDeleteArticleReal(), 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 27 of file Revision.php.
Referenced by SpecialRevisionDelete\buildCheckBoxes(), RevDel_RevisionItem\canView(), RevisionItem\canView(), RevDel_LogItem\canView(), LocalFileDeleteBatch\doDBInserts(), WikiPage\doDeleteArticleReal(), SpecialRevisionDelete\execute(), SpecialRevisionDelete\extractBitParams(), RevisionDeleter\getChanges(), RevDel_RevisionList\getSuppressBit(), RevDel_LogList\getSuppressBit(), HistoryPager\historyLine(), RevisionDeleteUser\setUsernameBitfields(), RevDel_List\setVisibility(), Article\showDeletedRevisionHeader(), DifferenceEngine\showDiffPage(), and SpecialRevisionDelete\submit().
const Revision::DELETED_TEXT = 1 |
Definition at line 24 of file Revision.php.
Referenced by RevDel_RevisionItem\canViewContent(), RevisionItem\canViewContent(), CleanupSpam\cleanupArticle(), WikiPage\commitRollback(), HistoryPager\curLink(), HistoryPager\diffButtons(), LocalFileDeleteBatch\doDBInserts(), WikiPage\doDeleteArticleReal(), ApiParse\execute(), ApiEditPage\execute(), ApiQueryRevisions\execute(), ApiQueryRevisions\extractRowInfo(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), DeletedContribsPager\formatRow(), ContribsPager\formatRow(), RevisionDeleter\getChanges(), EditPage\getContent(), DifferenceEngine\getDiffBody(), SpecialUndelete\getPageLink(), DifferenceEngine\getRevisionHeader(), HistoryPager\historyLine(), ChangesList\insertArticleLink(), ChangesList\insertDiffHist(), RevDel_RevisionItem\isDeleted(), RevisionItem\isDeleted(), RevDel_RevisionItem\isHideCurrentOp(), HistoryPager\lastLink(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesLine(), HistoryPager\revLink(), Article\showDeletedRevisionHeader(), DifferenceEngine\showDiffPage(), EditPage\showHeader(), SpecialUndelete\showRevision(), PageArchive\undeleteRevisions(), and XmlDumpWriter\writeRevision().
const Revision::DELETED_USER = 4 |
Definition at line 26 of file Revision.php.
Referenced by WikiPage\commitRollback(), WikiExporter\do_list_authors(), LocalFileDeleteBatch\doDBInserts(), WikiPage\doDeleteArticleReal(), ApiQueryRevisions\execute(), SpecialRevisionDelete\execute(), ApiQueryContributions\extractRowInfo(), ApiQueryRevisions\extractRowInfo(), DeletedContribsPager\formatRow(), ContribsPager\formatRow(), ChangesFeed\generateFeed(), WikiPage\getAutoDeleteReason(), RevisionDeleter\getChanges(), DeletedContribsPager\getQueryInfo(), ContribsPager\getQueryInfo(), RevDel_FileItem\getUserTools(), ChangesList\insertUserRelatedLinks(), ApiQueryContributions\prepareQuery(), EnhancedChangesList\recentChangesLine(), Linker\revUserLink(), Linker\revUserTools(), RevisionDeleteUser\setUsernameBitfields(), and XmlDumpWriter\writeRevision().
const Revision::FOR_PUBLIC = 1 |
Definition at line 31 of file Revision.php.
Referenced by GetTextMaint\execute().
const Revision::FOR_THIS_USER = 2 |
Definition at line 32 of file Revision.php.
Referenced by ApiParse\execute(), ApiEditPage\execute(), Article\fetchContent(), DifferenceEngine\loadNewText(), DifferenceEngine\loadText(), Linker\revComment(), Linker\revUserLink(), Linker\revUserTools(), and SpecialUndelete\showRevision().
const Revision::RAW = 3 |
Definition at line 33 of file Revision.php.
Referenced by GetTextMaint\execute().
const Revision::SUPPRESSED_USER = 12 |
Definition at line 29 of file Revision.php.
Referenced by DeletedContribsPager\getQueryInfo(), and ContribsPager\getQueryInfo().