MediaWiki REL1_31
|
A RevisionRecord representing a revision of a deleted page persisted in the archive table. More...
Public Member Functions | |
__construct (Title $title, UserIdentity $user, CommentStoreComment $comment, $row, RevisionSlots $slots, $wikiId=false) | |
getArchiveId () | |
Get archive row ID. | |
getComment ( $audience=self::FOR_PUBLIC, User $user=null) | |
getId () | |
getSha1 () | |
getSize () | |
getTimestamp () | |
getUser ( $audience=self::FOR_PUBLIC, User $user=null) | |
Public Member Functions inherited from MediaWiki\Storage\RevisionRecord | |
__construct (Title $title, RevisionSlots $slots, $wikiId=false) | |
__sleep () | |
Implemented to defy serialization. | |
getContent ( $role, $audience=self::FOR_PUBLIC, User $user=null) | |
Returns the Content of the given slot of this revision. | |
getPageAsLinkTarget () | |
Returns the title of the page this revision is associated with as a LinkTarget object. | |
getPageId () | |
Get the page ID. | |
getParentId () | |
Get parent revision ID (the original previous page revision). | |
getSlot ( $role, $audience=self::FOR_PUBLIC, User $user=null) | |
Returns meta-data for the given slot. | |
getSlotRoles () | |
Returns the slot names (roles) of all slots present in this revision. | |
getVisibility () | |
Get the deletion bitfield of the revision. | |
getWikiId () | |
Get the ID of the wiki this revision belongs to. | |
hasSameContent (RevisionRecord $rec) | |
hasSlot ( $role) | |
Returns whether the given slot is defined in this revision. | |
isDeleted ( $field) | |
MCR migration note: this replaces Revision::isDeleted. | |
isMinor () | |
MCR migration note: this replaces Revision::isMinor. | |
Protected Attributes | |
int | $mArchiveId |
Protected Attributes inherited from MediaWiki\Storage\RevisionRecord | |
CommentStoreComment null | $mComment |
int | $mDeleted = 0 |
using the DELETED_XXX and SUPPRESSED_XXX flags | |
int null | $mId |
bool | $mMinorEdit = false |
int null | $mPageId |
int null | $mParentId |
string null | $mSha1 |
int null | $mSize |
RevisionSlots | $mSlots |
string null | $mTimestamp |
Title | $mTitle |
UserIdentity null | $mUser |
string | $mWiki = false |
Wiki ID; false means the current wiki. | |
Additional Inherited Members | |
Static Public Member Functions inherited from MediaWiki\Storage\RevisionRecord | |
static | userCanBitfield ( $bitfield, $field, User $user, Title $title=null) |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. | |
Public Attributes inherited from MediaWiki\Storage\RevisionRecord | |
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 |
Protected Member Functions inherited from MediaWiki\Storage\RevisionRecord | |
audienceCan ( $field, $audience, User $user=null) | |
Check that the given audience has access to the given field. | |
userCan ( $field, User $user) | |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. | |
A RevisionRecord representing a revision of a deleted page persisted in the archive table.
Most getters on RevisionArchiveRecord will never return null. However, getId() and getParentId() may indeed return null if this information was not stored when the archive entry was created.
Definition at line 39 of file RevisionArchiveRecord.php.
MediaWiki\Storage\RevisionArchiveRecord::__construct | ( | Title | $title, |
UserIdentity | $user, | ||
CommentStoreComment | $comment, | ||
$row, | |||
RevisionSlots | $slots, | ||
$wikiId = false ) |
Title | $title | The title of the page this Revision is associated with. |
UserIdentity | $user | |
CommentStoreComment | $comment | |
object | $row | An archive table row. Use RevisionStore::getArchiveQueryInfo() to build a query that yields the required fields. |
RevisionSlots | $slots | The slots of this revision. |
bool | string | $wikiId | the wiki ID of the site this Revision belongs to, or false for the local site. |
Definition at line 59 of file RevisionArchiveRecord.php.
References $user, and wfTimestamp().
MediaWiki\Storage\RevisionArchiveRecord::getArchiveId | ( | ) |
Get archive row ID.
Definition at line 99 of file RevisionArchiveRecord.php.
References MediaWiki\Storage\RevisionArchiveRecord\$mArchiveId.
MediaWiki\Storage\RevisionArchiveRecord::getComment | ( | $audience = self::FOR_PUBLIC, | |
User | $user = null ) |
int | $audience | |
User | null | $user |
Reimplemented from MediaWiki\Storage\RevisionRecord.
Definition at line 157 of file RevisionArchiveRecord.php.
MediaWiki\Storage\RevisionArchiveRecord::getId | ( | ) |
Reimplemented from MediaWiki\Storage\RevisionRecord.
Definition at line 107 of file RevisionArchiveRecord.php.
MediaWiki\Storage\RevisionArchiveRecord::getSha1 | ( | ) |
RevisionAccessException | if the hash was unknown and could not be calculated. |
Reimplemented from MediaWiki\Storage\RevisionRecord.
Definition at line 130 of file RevisionArchiveRecord.php.
References MediaWiki\Storage\RevisionRecord\$mSha1.
MediaWiki\Storage\RevisionArchiveRecord::getSize | ( | ) |
RevisionAccessException | if the size was unknown and could not be calculated. |
Reimplemented from MediaWiki\Storage\RevisionRecord.
Definition at line 116 of file RevisionArchiveRecord.php.
References MediaWiki\Storage\RevisionRecord\$mSize.
MediaWiki\Storage\RevisionArchiveRecord::getTimestamp | ( | ) |
Reimplemented from MediaWiki\Storage\RevisionRecord.
Definition at line 165 of file RevisionArchiveRecord.php.
MediaWiki\Storage\RevisionArchiveRecord::getUser | ( | $audience = self::FOR_PUBLIC, | |
User | $user = null ) |
int | $audience | |
User | null | $user |
Reimplemented from MediaWiki\Storage\RevisionRecord.
Definition at line 146 of file RevisionArchiveRecord.php.
|
protected |
Definition at line 44 of file RevisionArchiveRecord.php.
Referenced by MediaWiki\Storage\RevisionArchiveRecord\getArchiveId().