MediaWiki
1.33.0
|
Item class for a live revision table row. More...
Public Member Functions | |
__construct ( $list, $row) | |
canView () | |
Returns true if the current user can view the item. More... | |
canViewContent () | |
Returns true if the current user can view the item text/file. More... | |
getAuthorIdField () | |
Get the DB field name storing user ids. More... | |
getAuthorNameField () | |
Get the DB field name storing user names. More... | |
getHTML () | |
getIdField () | |
Get the DB field name associated with the ID list. More... | |
getTimestampField () | |
Get the DB field name storing timestamps. More... | |
isDeleted () | |
Public Member Functions inherited from RevisionItemBase | |
formatDate () | |
Get the date, formatted in user's language. More... | |
formatTime () | |
Get the time, formatted in user's language. More... | |
getAuthorActor () | |
Get the author actor ID. More... | |
getAuthorActorField () | |
Get the DB field name storing actor ids. More... | |
getAuthorId () | |
Get the author user ID. More... | |
getAuthorName () | |
Get the author user name. More... | |
getId () | |
Get the ID, as it would appear in the ids URL parameter. More... | |
getTimestamp () | |
Get the timestamp in MW 14-char form. More... | |
Protected Member Functions | |
getDiffLink () | |
Get the HTML link to the diff. More... | |
getRevisionLink () | |
Get the HTML link to the revision text. More... | |
Protected Member Functions inherited from RevisionItemBase | |
getLinkRenderer () | |
Returns an instance of LinkRenderer. More... | |
Protected Attributes | |
RequestContext | $context |
Revision | $revision |
Protected Attributes inherited from RevisionItemBase | |
RevisionListBase | $list |
The parent. More... | |
$row | |
The database result row. More... | |
Item class for a live revision table row.
Definition at line 26 of file RevisionItem.php.
RevisionItem::__construct | ( | $list, | |
$row | |||
) |
RevisionListBase | $list | |
object | $row | DB result row |
Reimplemented from RevisionItemBase.
Definition at line 33 of file RevisionItem.php.
References RevisionItemBase\$list, RevisionItemBase\$row, ContextSource\getContext(), and revision.
RevisionItem::canView | ( | ) |
Returns true if the current user can view the item.
Reimplemented from RevisionItemBase.
Definition at line 55 of file RevisionItem.php.
References Revision\DELETED_RESTRICTED, and revision.
RevisionItem::canViewContent | ( | ) |
Returns true if the current user can view the item text/file.
Reimplemented from RevisionItemBase.
Definition at line 59 of file RevisionItem.php.
References Revision\DELETED_TEXT, and revision.
Referenced by getDiffLink(), and getRevisionLink().
RevisionItem::getAuthorIdField | ( | ) |
Get the DB field name storing user ids.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 47 of file RevisionItem.php.
RevisionItem::getAuthorNameField | ( | ) |
Get the DB field name storing user names.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 51 of file RevisionItem.php.
|
protected |
Get the HTML link to the diff.
Definition at line 100 of file RevisionItem.php.
References $linkRenderer, canViewContent(), RevisionItemBase\getLinkRenderer(), isDeleted(), list, and revision.
Referenced by ChangeTagsRevisionItem\getHTML(), and getHTML().
RevisionItem::getHTML | ( | ) |
That class should inherit from this one, and implement an appropriate interface instead of extending RevDelItem
Reimplemented from RevisionItemBase.
Reimplemented in ChangeTagsRevisionItem.
Definition at line 124 of file RevisionItem.php.
References getDiffLink(), getRevisionLink(), isDeleted(), Linker\revComment(), revision, and Linker\revUserLink().
RevisionItem::getIdField | ( | ) |
Get the DB field name associated with the ID list.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 39 of file RevisionItem.php.
|
protected |
Get the HTML link to the revision text.
Definition at line 74 of file RevisionItem.php.
References $linkRenderer, canViewContent(), RevisionItemBase\getLinkRenderer(), isDeleted(), list, and revision.
Referenced by ChangeTagsRevisionItem\getHTML(), and getHTML().
RevisionItem::getTimestampField | ( | ) |
Get the DB field name storing timestamps.
Override this function.
Reimplemented from RevisionItemBase.
Definition at line 43 of file RevisionItem.php.
RevisionItem::isDeleted | ( | ) |
Definition at line 63 of file RevisionItem.php.
References Revision\DELETED_TEXT, and revision.
Referenced by getDiffLink(), ChangeTagsRevisionItem\getHTML(), getHTML(), and getRevisionLink().
|
protected |
Definition at line 31 of file RevisionItem.php.
|
protected |
Definition at line 28 of file RevisionItem.php.