MediaWiki  REL1_19
RevisionItemBase Class Reference

Abstract base class for revision items. More...

Inheritance diagram for RevisionItemBase:

List of all members.

Public Member Functions

 __construct ($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.
 formatDate ()
 Get the date, formatted in user's languae.
 formatTime ()
 Get the time, formatted in user's languae.
 getAuthorId ()
 Get the author user ID.
 getAuthorIdField ()
 Get the DB field name storing user ids.
 getAuthorName ()
 Get the author user name.
 getAuthorNameField ()
 Get the DB field name storing user names.
 getHTML ()
 Get the HTML of the list item.
 getId ()
 Get the ID, as it would appear in the ids URL parameter.
 getIdField ()
 Get the DB field name associated with the ID list.
 getTimestamp ()
 Get the timestamp in MW 14-char form.
 getTimestampField ()
 Get the DB field name storing timestamps.

Public Attributes

 $list
 The parent RevisionListBase.
 $row
 The DB result row.

Detailed Description

Abstract base class for revision items.

Definition at line 108 of file RevisionList.php.


Constructor & Destructor Documentation

RevisionItemBase::__construct ( list,
row 
)
Parameters:
$listRevisionListBase
$rowDB result row

Reimplemented in RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchivedRevisionItem, RevDel_ArchiveItem, RevisionItem, and RevDel_RevisionItem.

Definition at line 119 of file RevisionList.php.

References $list, and $row.


Member Function Documentation

RevisionItemBase::canView ( ) [abstract]

Returns true if the current user can view the item.

Reimplemented in RevDel_LogItem, RevDel_FileItem, RevisionItem, and RevDel_RevisionItem.

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

Reimplemented in RevDel_LogItem, RevDel_FileItem, RevisionItem, and RevDel_RevisionItem.

Get the date, formatted in user's languae.

Definition at line 167 of file RevisionList.php.

References getTimestamp().

Here is the call graph for this function:

Get the time, formatted in user's languae.

Definition at line 175 of file RevisionList.php.

References getTimestamp().

Here is the call graph for this function:

Get the author user ID.

Definition at line 191 of file RevisionList.php.

References getAuthorIdField().

Here is the call graph for this function:

Get the DB field name storing user ids.

Override this function.

Reimplemented in RevDel_LogItem, RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchiveItem, RevisionItem, and RevDel_RevisionItem.

Definition at line 144 of file RevisionList.php.

Referenced by getAuthorId().

Here is the caller graph for this function:

Get the author user name.

Definition at line 199 of file RevisionList.php.

References getAuthorNameField().

Here is the call graph for this function:

Get the DB field name storing user names.

Override this function.

Reimplemented in RevDel_LogItem, RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchiveItem, RevisionItem, and RevDel_RevisionItem.

Definition at line 152 of file RevisionList.php.

Referenced by getAuthorName().

Here is the caller graph for this function:

RevisionItemBase::getHTML ( ) [abstract]

Get the HTML of the list item.

Should be include tags. This is used to show the list in HTML form, by the special page.

Reimplemented in RevDel_LogItem, RevDel_FileItem, RevisionItem, and RevDel_RevisionItem.

Get the ID, as it would appear in the ids URL parameter.

Reimplemented in RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchivedRevisionItem, and RevDel_ArchiveItem.

Definition at line 159 of file RevisionList.php.

References getIdField().

Referenced by RevDel_RevisionItem\isHideCurrentOp().

Here is the call graph for this function:

Here is the caller graph for this function:

Get the DB field name associated with the ID list.

Override this function.

Reimplemented in RevDel_LogItem, RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchivedRevisionItem, RevDel_ArchiveItem, RevisionItem, and RevDel_RevisionItem.

Definition at line 128 of file RevisionList.php.

Referenced by getId().

Here is the caller graph for this function:

Get the timestamp in MW 14-char form.

Definition at line 183 of file RevisionList.php.

References getTimestampField(), and wfTimestamp().

Referenced by formatDate(), and formatTime().

Here is the call graph for this function:

Here is the caller graph for this function:

Get the DB field name storing timestamps.

Override this function.

Reimplemented in RevDel_LogItem, RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchiveItem, RevisionItem, and RevDel_RevisionItem.

Definition at line 136 of file RevisionList.php.

Referenced by getTimestamp().

Here is the caller graph for this function:


Member Data Documentation


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