MediaWiki master
ChangeTagsLogItem Class Reference

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

Inherits RevisionItemBase.

Collaboration diagram for ChangeTagsLogItem:

Public Member Functions

 canView ()
 Returns true if the current user can view the item.
 
 canViewContent ()
 Returns true if the current user can view the item text/file.
 
 getAuthorActorField ()
 Get the DB field name storing actor ids.
 
 getAuthorIdField ()
 Get the DB field name storing user ids.
 
 getAuthorNameField ()
 Get the DB field name storing user names.
 
 getHTML ()
 
 getIdField ()
 Get the DB field name associated with the ID list.
 
 getTags ()
 
 getTimestampField ()
 Get the DB field name storing timestamps.
 
- Public Member Functions inherited from RevisionItemBase
 __construct (RevisionListBase $list, $row)
 
 formatDate ()
 Get the date, formatted in user's language.
 
 formatTime ()
 Get the time, formatted in user's language.
 
 getAuthorActor ()
 Get the author actor ID.
 
 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 RevisionItemBase
 getLinkRenderer ()
 Returns an instance of LinkRenderer.
 
- Protected Attributes inherited from RevisionItemBase
RevisionListBase $list
 The parent.
 
stdClass $row
 The database result row.
 

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 33 of file ChangeTagsLogItem.php.

Member Function Documentation

◆ canView()

ChangeTagsLogItem::canView ( )

Returns true if the current user can view the item.

Returns
bool

Reimplemented from RevisionItemBase.

Definition at line 54 of file ChangeTagsLogItem.php.

◆ canViewContent()

ChangeTagsLogItem::canViewContent ( )

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

Returns
bool

Reimplemented from RevisionItemBase.

Definition at line 60 of file ChangeTagsLogItem.php.

◆ getAuthorActorField()

ChangeTagsLogItem::getAuthorActorField ( )

Get the DB field name storing actor ids.

Override this function.

Since
1.31
Returns
string|false

Reimplemented from RevisionItemBase.

Definition at line 50 of file ChangeTagsLogItem.php.

◆ getAuthorIdField()

ChangeTagsLogItem::getAuthorIdField ( )

Get the DB field name storing user ids.

Override this function.

Returns
string|false

Reimplemented from RevisionItemBase.

Definition at line 42 of file ChangeTagsLogItem.php.

◆ getAuthorNameField()

ChangeTagsLogItem::getAuthorNameField ( )

Get the DB field name storing user names.

Override this function.

Returns
string|false

Reimplemented from RevisionItemBase.

Definition at line 46 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 75 of file ChangeTagsLogItem.php.

References ChangeTags\formatSummaryRow(), and getTags().

◆ getIdField()

ChangeTagsLogItem::getIdField ( )

Get the DB field name associated with the ID list.

Override this function.

Returns
string|null

Reimplemented from RevisionItemBase.

Definition at line 34 of file ChangeTagsLogItem.php.

◆ getTags()

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

Definition at line 67 of file ChangeTagsLogItem.php.

Referenced by getHTML().

◆ getTimestampField()

ChangeTagsLogItem::getTimestampField ( )

Get the DB field name storing timestamps.

Override this function.

Returns
string|false

Reimplemented from RevisionItemBase.

Definition at line 38 of file ChangeTagsLogItem.php.


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