MediaWiki  REL1_19
RevisionItem Class Reference

Item class for a live revision table row. More...

Inheritance diagram for RevisionItem:
Collaboration diagram for RevisionItem:

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.
 getAuthorIdField ()
 Get the DB field name storing user ids.
 getAuthorNameField ()
 Get the DB field name storing user names.
 getHTML ()
 Get the HTML of the list item.
 getIdField ()
 Get the DB field name associated with the ID list.
 getTimestampField ()
 Get the DB field name storing timestamps.
 isDeleted ()

Public Attributes

 $context
 $revision

Protected Member Functions

 getDiffLink ()
 Get the HTML link to the diff.
 getRevisionLink ()
 Get the HTML link to the revision text.

Detailed Description

Item class for a live revision table row.

Definition at line 255 of file RevisionList.php.


Constructor & Destructor Documentation

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

Reimplemented from RevisionItemBase.

Definition at line 258 of file RevisionList.php.

References RevisionItemBase\$list, and RevisionItemBase\$row.


Member Function Documentation

Returns true if the current user can view the item.

Reimplemented from RevisionItemBase.

Definition at line 280 of file RevisionList.php.

References Revision\DELETED_RESTRICTED.

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

Reimplemented from RevisionItemBase.

Definition at line 284 of file RevisionList.php.

References Revision\DELETED_TEXT.

Referenced by getDiffLink(), and getRevisionLink().

Here is the caller graph for this function:

Get the DB field name storing user ids.

Override this function.

Reimplemented from RevisionItemBase.

Definition at line 272 of file RevisionList.php.

Get the DB field name storing user names.

Override this function.

Reimplemented from RevisionItemBase.

Definition at line 276 of file RevisionList.php.

RevisionItem::getDiffLink ( ) [protected]

Get the HTML link to the diff.

Overridden by RevDel_ArchiveItem

Definition at line 316 of file RevisionList.php.

References canViewContent(), isDeleted(), Linker\link(), and wfMsgHtml().

Referenced by getHTML().

Here is the call graph for this function:

Here is the caller graph for this function:

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 from RevisionItemBase.

Definition at line 338 of file RevisionList.php.

References $comment, getDiffLink(), getRevisionLink(), isDeleted(), Linker\revComment(), and Linker\revUserLink().

Here is the call graph for this function:

Get the DB field name associated with the ID list.

Override this function.

Reimplemented from RevisionItemBase.

Definition at line 264 of file RevisionList.php.

Get the HTML link to the revision text.

Overridden by RevDel_ArchiveItem.

Definition at line 296 of file RevisionList.php.

References canViewContent(), isDeleted(), and Linker\link().

Referenced by getHTML().

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 from RevisionItemBase.

Definition at line 268 of file RevisionList.php.

Definition at line 288 of file RevisionList.php.

References Revision\DELETED_TEXT.

Referenced by getDiffLink(), getHTML(), and getRevisionLink().

Here is the caller graph for this function:


Member Data Documentation

RevisionItem::$context

Definition at line 256 of file RevisionList.php.

RevisionItem::$revision

Definition at line 256 of file RevisionList.php.


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