MediaWiki
1.23.11
|
Abstract base class for revision items. More...
Public Member Functions | |
__construct ( $list, $row) | |
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... | |
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... | |
getAuthorIdField () | |
Get the DB field name storing user ids. More... | |
getAuthorName () | |
Get the author user name. More... | |
getAuthorNameField () | |
Get the DB field name storing user names. More... | |
getHTML () | |
Get the HTML of the list item. More... | |
getId () | |
Get the ID, as it would appear in the ids URL parameter. More... | |
getIdField () | |
Get the DB field name associated with the ID list. More... | |
getTimestamp () | |
Get the timestamp in MW 14-char form. More... | |
getTimestampField () | |
Get the DB field name storing timestamps. More... | |
Public Attributes | |
$list | |
The parent RevisionListBase. More... | |
$row | |
The DB result row. More... | |
Abstract base class for revision items.
Definition at line 130 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 141 of file RevisionList.php.
References $list, $row, and list.
Referenced by RevDel_ArchiveItem\__construct(), RevDel_ArchivedRevisionItem\__construct(), and RevDel_ArchivedFileItem\__construct().
|
abstract |
Returns true if the current user can view the item.
Reimplemented in RevDel_LogItem, RevDel_FileItem, RevisionItem, and RevDel_RevisionItem.
|
abstract |
Returns true if the current user can view the item text/file.
Reimplemented in RevDel_LogItem, RevDel_FileItem, RevisionItem, and RevDel_RevisionItem.
RevisionItemBase::formatDate | ( | ) |
Get the date, formatted in user's language.
Definition at line 195 of file RevisionList.php.
References getTimestamp(), and list.
RevisionItemBase::formatTime | ( | ) |
Get the time, formatted in user's language.
Definition at line 204 of file RevisionList.php.
References getTimestamp(), and list.
RevisionItemBase::getAuthorId | ( | ) |
Get the author user ID.
Definition at line 222 of file RevisionList.php.
References getAuthorIdField().
RevisionItemBase::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 169 of file RevisionList.php.
Referenced by getAuthorId().
RevisionItemBase::getAuthorName | ( | ) |
Get the author user name.
Definition at line 231 of file RevisionList.php.
References getAuthorNameField().
RevisionItemBase::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 178 of file RevisionList.php.
Referenced by getAuthorName().
|
abstract |
Get the HTML of the list item.
Should be include "<li></li>" 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.
RevisionItemBase::getId | ( | ) |
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 186 of file RevisionList.php.
References getIdField().
Referenced by RevDel_RevisionItem\isHideCurrentOp().
RevisionItemBase::getIdField | ( | ) |
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 151 of file RevisionList.php.
Referenced by getId().
RevisionItemBase::getTimestamp | ( | ) |
Get the timestamp in MW 14-char form.
Definition at line 213 of file RevisionList.php.
References getTimestampField(), TS_MW, and wfTimestamp().
Referenced by formatDate(), and formatTime().
RevisionItemBase::getTimestampField | ( | ) |
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 160 of file RevisionList.php.
Referenced by getTimestamp().
RevisionItemBase::$list |
The parent RevisionListBase.
Definition at line 132 of file RevisionList.php.
Referenced by __construct(), RevDel_RevisionItem\__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 135 of file RevisionList.php.
Referenced by __construct(), RevDel_RevisionItem\__construct(), RevisionItem\__construct(), RevDel_ArchiveItem\__construct(), RevDel_ArchivedRevisionItem\__construct(), RevDel_FileItem\__construct(), and RevDel_ArchivedFileItem\__construct().