MediaWiki  1.30.0
ChangeTagsLogItem Class Reference

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

Inheritance diagram for ChangeTagsLogItem:
Collaboration diagram for ChangeTagsLogItem:

Public Member Functions

 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...
 
 getTags ()
 
 getTimestampField ()
 Get the DB field name storing timestamps. More...
 
- Public Member Functions inherited from RevisionItemBase
 __construct ( $list, $row)
 
 formatDate ()
 Get the date, formatted in user's language. More...
 
 formatTime ()
 Get the time, formatted in user's language. 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...
 

Additional Inherited Members

- Protected Member Functions inherited from RevisionItemBase
 getLinkRenderer ()
 Returns an instance of LinkRenderer. More...
 
- Protected Attributes inherited from RevisionItemBase
RevisionListBase $list
 The parent. More...
 
 $row
 The database result row. More...
 

Detailed Description

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

Todo:
Abstract out a base class for this and RevDelLogItem, similar to the RevisionItem class but specifically for log items.
Since
1.25

Definition at line 30 of file ChangeTagsLogItem.php.

Member Function Documentation

◆ canView()

ChangeTagsLogItem::canView ( )

Returns true if the current user can view the item.

Reimplemented from RevisionItemBase.

Definition at line 47 of file ChangeTagsLogItem.php.

References Revision\DELETED_RESTRICTED, list, and LogEventsList\userCan().

◆ canViewContent()

ChangeTagsLogItem::canViewContent ( )

Returns true if the current user can view the item text/file.

Reimplemented from RevisionItemBase.

Definition at line 51 of file ChangeTagsLogItem.php.

◆ getAuthorIdField()

ChangeTagsLogItem::getAuthorIdField ( )

Get the DB field name storing user ids.

Override this function.

Returns
bool

Reimplemented from RevisionItemBase.

Definition at line 39 of file ChangeTagsLogItem.php.

◆ getAuthorNameField()

ChangeTagsLogItem::getAuthorNameField ( )

Get the DB field name storing user names.

Override this function.

Returns
bool

Reimplemented from RevisionItemBase.

Definition at line 43 of file ChangeTagsLogItem.php.

◆ getHTML()

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

Reimplemented from RevisionItemBase.

Definition at line 66 of file ChangeTagsLogItem.php.

References $attribs, $title, LogPage\DELETED_COMMENT, LogFormatter\FOR_THIS_USER, ChangeTags\formatSummaryRow(), getTags(), SpecialPage\getTitleFor(), LogEventsList\isDeleted(), list, Title\makeTitle(), LogFormatter\newFromRow(), and Xml\tags().

◆ getIdField()

ChangeTagsLogItem::getIdField ( )

Get the DB field name associated with the ID list.

Override this function.

Returns
null

Reimplemented from RevisionItemBase.

Definition at line 31 of file ChangeTagsLogItem.php.

◆ getTags()

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

Definition at line 58 of file ChangeTagsLogItem.php.

Referenced by getHTML().

◆ getTimestampField()

ChangeTagsLogItem::getTimestampField ( )

Get the DB field name storing timestamps.

Override this function.

Returns
bool

Reimplemented from RevisionItemBase.

Definition at line 35 of file ChangeTagsLogItem.php.


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