MediaWiki
1.30.0
|
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... | |
Protected Member Functions | |
getLinkRenderer () | |
Returns an instance of LinkRenderer. More... | |
Protected Attributes | |
RevisionListBase | $list |
The parent. More... | |
$row | |
The database result row. More... | |
Abstract base class for revision items.
Definition at line 154 of file RevisionList.php.
RevisionItemBase::__construct | ( | $list, | |
$row | |||
) |
RevisionListBase | $list | |
object | $row | DB result row |
Reimplemented in RevisionItem, RevDelArchivedFileItem, RevDelFileItem, RevDelRevisionItem, RevDelArchivedRevisionItem, and RevDelArchiveItem.
Definition at line 165 of file RevisionList.php.
References $list, $row, and list.
Referenced by RevDelArchiveItem\__construct(), RevDelArchivedRevisionItem\__construct(), and RevDelArchivedFileItem\__construct().
|
abstract |
Returns true if the current user can view the item.
Reimplemented in RevisionItem, RevDelFileItem, RevDelRevisionItem, ChangeTagsLogItem, and RevDelLogItem.
|
abstract |
Returns true if the current user can view the item text/file.
Reimplemented in RevisionItem, RevDelFileItem, RevDelRevisionItem, ChangeTagsLogItem, and RevDelLogItem.
RevisionItemBase::formatDate | ( | ) |
Get the date, formatted in user's language.
Definition at line 219 of file RevisionList.php.
References getTimestamp(), and list.
RevisionItemBase::formatTime | ( | ) |
Get the time, formatted in user's language.
Definition at line 228 of file RevisionList.php.
References getTimestamp(), and list.
RevisionItemBase::getAuthorId | ( | ) |
Get the author user ID.
Definition at line 246 of file RevisionList.php.
References getAuthorIdField().
RevisionItemBase::getAuthorIdField | ( | ) |
Get the DB field name storing user ids.
Override this function.
Reimplemented in RevisionItem, RevDelArchivedFileItem, RevDelFileItem, RevDelRevisionItem, RevDelArchiveItem, ChangeTagsLogItem, and RevDelLogItem.
Definition at line 193 of file RevisionList.php.
Referenced by getAuthorId().
RevisionItemBase::getAuthorName | ( | ) |
Get the author user name.
Definition at line 255 of file RevisionList.php.
References getAuthorNameField().
RevisionItemBase::getAuthorNameField | ( | ) |
Get the DB field name storing user names.
Override this function.
Reimplemented in RevisionItem, RevDelArchivedFileItem, RevDelFileItem, RevDelRevisionItem, RevDelArchiveItem, ChangeTagsLogItem, and RevDelLogItem.
Definition at line 202 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 RevisionItem, RevDelFileItem, RevDelRevisionItem, RevDelLogItem, ChangeTagsLogItem, and ChangeTagsRevisionItem.
RevisionItemBase::getId | ( | ) |
Get the ID, as it would appear in the ids URL parameter.
Reimplemented in RevDelArchivedFileItem, RevDelFileItem, RevDelArchiveItem, and RevDelArchivedRevisionItem.
Definition at line 210 of file RevisionList.php.
References getIdField().
Referenced by RevDelRevisionItem\isHideCurrentOp().
RevisionItemBase::getIdField | ( | ) |
Get the DB field name associated with the ID list.
Override this function.
Reimplemented in RevisionItem, RevDelArchivedFileItem, RevDelFileItem, RevDelArchivedRevisionItem, RevDelRevisionItem, RevDelArchiveItem, ChangeTagsLogItem, and RevDelLogItem.
Definition at line 175 of file RevisionList.php.
Referenced by getId().
|
protected |
Returns an instance of LinkRenderer.
Definition at line 280 of file RevisionList.php.
Referenced by RevDelArchiveItem\getDiffLink(), RevDelRevisionItem\getDiffLink(), RevisionItem\getDiffLink(), RevDelLogItem\getHTML(), RevDelArchivedFileItem\getLink(), RevDelFileItem\getLink(), RevDelArchiveItem\getRevisionLink(), RevDelRevisionItem\getRevisionLink(), and RevisionItem\getRevisionLink().
RevisionItemBase::getTimestamp | ( | ) |
Get the timestamp in MW 14-char form.
Definition at line 237 of file RevisionList.php.
References getTimestampField(), and wfTimestamp().
Referenced by formatDate(), and formatTime().
RevisionItemBase::getTimestampField | ( | ) |
Get the DB field name storing timestamps.
Override this function.
Reimplemented in RevisionItem, RevDelArchivedFileItem, RevDelFileItem, RevDelRevisionItem, RevDelArchiveItem, ChangeTagsLogItem, and RevDelLogItem.
Definition at line 184 of file RevisionList.php.
Referenced by getTimestamp().
|
protected |
The parent.
Definition at line 156 of file RevisionList.php.
Referenced by RevDelArchiveItem\__construct(), RevDelArchivedRevisionItem\__construct(), RevDelRevisionItem\__construct(), __construct(), and RevisionItem\__construct().
|
protected |
The database result row.
Definition at line 159 of file RevisionList.php.
Referenced by RevDelArchiveItem\__construct(), RevDelArchivedRevisionItem\__construct(), RevDelRevisionItem\__construct(), RevDelArchivedFileItem\__construct(), RevDelFileItem\__construct(), __construct(), and RevisionItem\__construct().