MediaWiki
master
|
Item class for a live revision table row. More...
Public Member Functions | |||||||
__construct (RevisionListBase $list, $row) | |||||||
| |||||||
canView () | |||||||
Returns true if the current user can view the item.
| |||||||
canViewContent () | |||||||
Returns true if the current user can view the item text/file.
| |||||||
getAuthorIdField () | |||||||
Get the DB field name storing user ids.Override this function.
| |||||||
getAuthorNameField () | |||||||
Get the DB field name storing user names.Override this function.
| |||||||
getHTML () | |||||||
getIdField () | |||||||
Get the DB field name associated with the ID list.Override this function.
| |||||||
getTimestampField () | |||||||
Get the DB field name storing timestamps.Override this function.
| |||||||
isDeleted () | |||||||
![]() | |||||||
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... | |
getRevisionRecord () | |
Get the RevisionRecord for the item. More... | |
![]() | |
getLinkRenderer () | |
Returns an instance of LinkRenderer. More... | |
Protected Attributes | |
RequestContext | $context |
RevisionRecord | $revisionRecord |
![]() | |
RevisionListBase | $list |
The parent. More... | |
stdClass | $row |
The database result row. More... | |
Item class for a live revision table row.
Definition at line 30 of file RevisionItem.php.
RevisionItem::__construct | ( | RevisionListBase | $list, |
$row | |||
) |
RevisionListBase | $list | |
stdClass | $row | DB result row |
Reimplemented from RevisionItemBase.
Definition at line 38 of file RevisionItem.php.
References RevisionItemBase\$list, RevisionItemBase\$row, and ContextSource\getContext().
RevisionItem::canView | ( | ) |
Returns true if the current user can view the item.
Reimplemented from RevisionItemBase.
Definition at line 76 of file RevisionItem.php.
RevisionItem::canViewContent | ( | ) |
Returns true if the current user can view the item text/file.
Reimplemented from RevisionItemBase.
Definition at line 84 of file RevisionItem.php.
RevisionItem::getAuthorIdField | ( | ) |
Get the DB field name storing user ids.Override this function.
Reimplemented from RevisionItemBase.
Definition at line 66 of file RevisionItem.php.
RevisionItem::getAuthorNameField | ( | ) |
Get the DB field name storing user names.Override this function.
Reimplemented from RevisionItemBase.
Definition at line 71 of file RevisionItem.php.
|
protected |
Get the HTML link to the diff.
Definition at line 132 of file RevisionItem.php.
Referenced by ChangeTagsRevisionItem\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 156 of file RevisionItem.php.
RevisionItem::getIdField | ( | ) |
Get the DB field name associated with the ID list.Override this function.
Reimplemented from RevisionItemBase.
Definition at line 56 of file RevisionItem.php.
|
protected |
Get the HTML link to the revision text.
Definition at line 105 of file RevisionItem.php.
Referenced by ChangeTagsRevisionItem\getHTML().
|
protected |
Get the RevisionRecord for the item.
Definition at line 51 of file RevisionItem.php.
Referenced by ChangeTagsRevisionItem\getHTML().
RevisionItem::getTimestampField | ( | ) |
Get the DB field name storing timestamps.Override this function.
Reimplemented from RevisionItemBase.
Definition at line 61 of file RevisionItem.php.
RevisionItem::isDeleted | ( | ) |
Definition at line 94 of file RevisionItem.php.
Referenced by ChangeTagsRevisionItem\getHTML().
|
protected |
Definition at line 35 of file RevisionItem.php.
|
protected |
Definition at line 32 of file RevisionItem.php.