MediaWiki master
ChangeTagsRevisionItem Class Reference

Item class for a live revision table row with its associated change tags. More...

Inherits RevisionItem.

Collaboration diagram for ChangeTagsRevisionItem:

Public Member Functions

 getHTML ()
 
 getTags ()
 
- Public Member Functions inherited from RevisionItem
 __construct (RevisionListBase $list, $row)
 
Parameters
RevisionListBase$list
stdClass$rowDB result row

 
 canView ()
 Returns true if the current user can view the item.
Returns
bool

 
 canViewContent ()
 Returns true if the current user can view the item text/file.
Returns
bool

 
 getAuthorIdField ()
 Get the DB field name storing user ids.Override this function.

Returns
string|false

 
 getAuthorNameField ()
 Get the DB field name storing user names.Override this function.

Returns
string|false

 
 getIdField ()
 Get the DB field name associated with the ID list.Override this function.

Returns
string|null

 
 getTimestampField ()
 Get the DB field name storing timestamps.Override this function.

Returns
string|false

 
 isDeleted ()
 
- Public Member Functions inherited from 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.
 

Additional Inherited Members

- Protected Member Functions inherited from RevisionItem
 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 RevisionItemBase
 getLinkRenderer ()
 Returns an instance of LinkRenderer.
 
- Protected Attributes inherited from RevisionItem
RequestContext $context
 
RevisionRecord $revisionRecord
 
- Protected Attributes inherited from RevisionItemBase
RevisionListBase $list
 The parent.
 
stdClass $row
 The database result row.
 

Detailed Description

Item class for a live revision table row with its associated change tags.

Since
1.25

Definition at line 30 of file ChangeTagsRevisionItem.php.

Member Function Documentation

◆ getHTML()

ChangeTagsRevisionItem::getHTML ( )
Returns
string A HTML element representing this revision, showing change tags and everything

Reimplemented from RevisionItem.

Definition at line 42 of file ChangeTagsRevisionItem.php.

References ChangeTags\formatSummaryRow(), RevisionItem\getDiffLink(), RevisionItem\getRevisionLink(), RevisionItem\getRevisionRecord(), getTags(), and RevisionItem\isDeleted().

◆ getTags()

ChangeTagsRevisionItem::getTags ( )
Returns
string Comma-separated list of tags

Definition at line 34 of file ChangeTagsRevisionItem.php.

Referenced by getHTML().


The documentation for this class was generated from the following file: