MediaWiki
REL1_19
|
Abstract base class for revision items. More...
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. |
Abstract base class for revision items.
Definition at line 108 of file RevisionList.php.
RevisionItemBase::__construct | ( | $ | list, |
$ | row | ||
) |
$list | RevisionListBase |
$row | DB result row |
Reimplemented in RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchivedRevisionItem, RevDel_ArchiveItem, RevisionItem, and RevDel_RevisionItem.
Definition at line 119 of file RevisionList.php.
RevisionItemBase::canView | ( | ) | [abstract] |
Returns true if the current user can view the item.
Reimplemented in RevDel_LogItem, RevDel_FileItem, RevisionItem, and RevDel_RevisionItem.
RevisionItemBase::canViewContent | ( | ) | [abstract] |
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().
Get the time, formatted in user's languae.
Definition at line 175 of file RevisionList.php.
References getTimestamp().
Get the author user ID.
Definition at line 191 of file RevisionList.php.
References getAuthorIdField().
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().
Get the author user name.
Definition at line 199 of file RevisionList.php.
References getAuthorNameField().
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().
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().
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().
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().
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().
RevisionItemBase::$list |
The parent RevisionListBase.
Definition at line 110 of file RevisionList.php.
Referenced by RevDel_RevisionItem\__construct(), __construct(), RevisionItem\__construct(), RevDel_ArchiveItem\__construct(), RevDel_ArchivedRevisionItem\__construct(), RevDel_FileItem\__construct(), and RevDel_ArchivedFileItem\__construct().
RevisionItemBase::$row |
The DB result row.
Definition at line 113 of file RevisionList.php.
Referenced by RevDel_RevisionItem\__construct(), __construct(), RevisionItem\__construct(), RevDel_ArchiveItem\__construct(), RevDel_ArchivedRevisionItem\__construct(), RevDel_FileItem\__construct(), and RevDel_ArchivedFileItem\__construct().