|
MediaWiki master
|
Item class for a live revision table row. More...
Inherits MediaWiki\RevisionList\RevisionItemBase.
Inherited by MediaWiki\ChangeTags\ChangeTagsRevisionItem.

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 () | |||||||
Public Member Functions inherited from MediaWiki\RevisionList\RevisionItemBase | |||||||
| formatDate () | |||||||
| Get the date, formatted in user's language. | |||||||
| formatTime () | |||||||
| Get the time, formatted in user's language. | |||||||
| getAuthorActor () | |||||||
| Get the author actor ID. | |||||||
| getAuthorActorField () | |||||||
| Get the DB field name storing actor ids. | |||||||
| getAuthorId () | |||||||
| Get the author user ID. | |||||||
| getAuthorName () | |||||||
| Get the author user name. | |||||||
| getId () | |||||||
| Get the ID, as it would appear in the ids URL parameter. | |||||||
| getTimestamp () | |||||||
| Get the timestamp in MW 14-char form. | |||||||
Protected Member Functions | |
| getDiffLink () | |
| Get the HTML link to the diff. | |
| getRevisionLink () | |
| Get the HTML link to the revision text. | |
| getRevisionRecord () | |
| Get the RevisionRecord for the item. | |
Protected Member Functions inherited from MediaWiki\RevisionList\RevisionItemBase | |
| getLinkRenderer () | |
| Returns an instance of LinkRenderer. | |
Protected Attributes | |
| IContextSource | $context |
| RevisionRecord | $revisionRecord |
Protected Attributes inherited from MediaWiki\RevisionList\RevisionItemBase | |
| RevisionListBase | $list |
| The parent. | |
| stdClass | $row |
| The database result row. | |
Item class for a live revision table row.
Definition at line 19 of file RevisionItem.php.
| MediaWiki\RevisionList\RevisionItem::__construct | ( | RevisionListBase | $list, |
| $row ) |
| RevisionListBase | $list | |
| stdClass | $row | DB result row |
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Definition at line 27 of file RevisionItem.php.
References MediaWiki\RevisionList\RevisionItemBase\$list, MediaWiki\RevisionList\RevisionItemBase\$row, MediaWiki\Context\ContextSource\getContext(), and MediaWiki\MediaWikiServices\getInstance().
| MediaWiki\RevisionList\RevisionItem::canView | ( | ) |
Returns true if the current user can view the item.
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Definition at line 63 of file RevisionItem.php.
| MediaWiki\RevisionList\RevisionItem::canViewContent | ( | ) |
Returns true if the current user can view the item text/file.
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Definition at line 71 of file RevisionItem.php.
| MediaWiki\RevisionList\RevisionItem::getAuthorIdField | ( | ) |
Get the DB field name storing user ids.Override this function.
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Definition at line 53 of file RevisionItem.php.
| MediaWiki\RevisionList\RevisionItem::getAuthorNameField | ( | ) |
Get the DB field name storing user names.Override this function.
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Definition at line 58 of file RevisionItem.php.
|
protected |
Get the HTML link to the diff.
Definition at line 119 of file RevisionItem.php.
Referenced by MediaWiki\ChangeTags\ChangeTagsRevisionItem\getHTML().
| MediaWiki\RevisionList\RevisionItem::getHTML | ( | ) |
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Reimplemented in MediaWiki\ChangeTags\ChangeTagsRevisionItem.
Definition at line 143 of file RevisionItem.php.
References MediaWiki\MediaWikiServices\getInstance().
| MediaWiki\RevisionList\RevisionItem::getIdField | ( | ) |
Get the DB field name associated with the ID list.Override this function.
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Definition at line 43 of file RevisionItem.php.
|
protected |
Get the HTML link to the revision text.
Definition at line 92 of file RevisionItem.php.
Referenced by MediaWiki\ChangeTags\ChangeTagsRevisionItem\getHTML().
|
protected |
Get the RevisionRecord for the item.
Definition at line 38 of file RevisionItem.php.
Referenced by MediaWiki\ChangeTags\ChangeTagsRevisionItem\getHTML().
| MediaWiki\RevisionList\RevisionItem::getTimestampField | ( | ) |
Get the DB field name storing timestamps.Override this function.
Reimplemented from MediaWiki\RevisionList\RevisionItemBase.
Definition at line 48 of file RevisionItem.php.
| MediaWiki\RevisionList\RevisionItem::isDeleted | ( | ) |
Definition at line 81 of file RevisionItem.php.
Referenced by MediaWiki\ChangeTags\ChangeTagsRevisionItem\getHTML().
|
protected |
Definition at line 24 of file RevisionItem.php.
|
protected |
Definition at line 21 of file RevisionItem.php.