MediaWiki REL1_33
|
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 language. | |
formatTime () | |
Get the time, formatted in user's language. | |
getAuthorActor () | |
Get the author actor ID. | |
getAuthorActorField () | |
Get the DB field name storing actor ids. | |
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. | |
Protected Member Functions | |
getLinkRenderer () | |
Returns an instance of LinkRenderer. | |
Protected Attributes | |
RevisionListBase | $list |
The parent. | |
$row | |
The database result row. | |
Abstract base class for revision items.
Definition at line 28 of file RevisionItemBase.php.
RevisionItemBase::__construct | ( | $list, | |
$row ) |
RevisionListBase | $list | |
object | $row | DB result row |
Reimplemented in RevDelArchivedFileItem, RevDelFileItem, RevDelRevisionItem, and RevisionItem.
Definition at line 39 of file RevisionItemBase.php.
|
abstract |
Returns true if the current user can view the item.
Reimplemented in ChangeTagsLogItem, RevDelFileItem, RevDelLogItem, RevDelRevisionItem, and RevisionItem.
|
abstract |
Returns true if the current user can view the item text/file.
Reimplemented in ChangeTagsLogItem, RevDelFileItem, RevDelLogItem, RevDelRevisionItem, and RevisionItem.
RevisionItemBase::formatDate | ( | ) |
Get the date, formatted in user's language.
Definition at line 103 of file RevisionItemBase.php.
References getTimestamp(), and list.
RevisionItemBase::formatTime | ( | ) |
Get the time, formatted in user's language.
Definition at line 112 of file RevisionItemBase.php.
References getTimestamp(), and list.
RevisionItemBase::getAuthorActor | ( | ) |
Get the author actor ID.
Definition at line 149 of file RevisionItemBase.php.
References and(), and getAuthorActorField().
RevisionItemBase::getAuthorActorField | ( | ) |
Get the DB field name storing actor ids.
Override this function.
Reimplemented in ChangeTagsLogItem, RevDelArchivedFileItem, RevDelArchiveItem, RevDelFileItem, RevDelLogItem, and RevDelRevisionItem.
Definition at line 86 of file RevisionItemBase.php.
Referenced by getAuthorActor().
RevisionItemBase::getAuthorId | ( | ) |
Get the author user ID.
Definition at line 130 of file RevisionItemBase.php.
References and(), and getAuthorIdField().
RevisionItemBase::getAuthorIdField | ( | ) |
Get the DB field name storing user ids.
Override this function.
Reimplemented in ChangeTagsLogItem, RevDelArchivedFileItem, RevDelArchiveItem, RevDelFileItem, RevDelLogItem, RevDelRevisionItem, and RevisionItem.
Definition at line 67 of file RevisionItemBase.php.
Referenced by getAuthorId().
RevisionItemBase::getAuthorName | ( | ) |
Get the author user name.
Definition at line 139 of file RevisionItemBase.php.
References and(), and getAuthorNameField().
RevisionItemBase::getAuthorNameField | ( | ) |
Get the DB field name storing user names.
Override this function.
Reimplemented in ChangeTagsLogItem, RevDelArchivedFileItem, RevDelArchiveItem, RevDelFileItem, RevDelLogItem, RevDelRevisionItem, and RevisionItem.
Definition at line 76 of file RevisionItemBase.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 ChangeTagsLogItem, ChangeTagsRevisionItem, RevDelFileItem, RevDelLogItem, RevDelRevisionItem, and RevisionItem.
RevisionItemBase::getId | ( | ) |
Get the ID, as it would appear in the ids URL parameter.
Reimplemented in RevDelArchivedFileItem, RevDelArchivedRevisionItem, RevDelArchiveItem, and RevDelFileItem.
Definition at line 94 of file RevisionItemBase.php.
References getIdField().
Referenced by RevDelRevisionItem\isHideCurrentOp().
RevisionItemBase::getIdField | ( | ) |
Get the DB field name associated with the ID list.
Override this function.
Reimplemented in ChangeTagsLogItem, RevDelArchivedFileItem, RevDelArchivedRevisionItem, RevDelArchiveItem, RevDelFileItem, RevDelLogItem, RevDelRevisionItem, and RevisionItem.
Definition at line 49 of file RevisionItemBase.php.
Referenced by getId().
|
protected |
Returns an instance of LinkRenderer.
Definition at line 174 of file RevisionItemBase.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 121 of file RevisionItemBase.php.
References getTimestampField(), and wfTimestamp().
Referenced by formatDate(), and formatTime().
RevisionItemBase::getTimestampField | ( | ) |
Get the DB field name storing timestamps.
Override this function.
Reimplemented in ChangeTagsLogItem, RevDelArchivedFileItem, RevDelArchiveItem, RevDelFileItem, RevDelLogItem, RevDelRevisionItem, and RevisionItem.
Definition at line 58 of file RevisionItemBase.php.
Referenced by getTimestamp().
|
protected |
The parent.
Definition at line 30 of file RevisionItemBase.php.
Referenced by RevDelRevisionItem\__construct(), RevisionItem\__construct(), __construct(), and RevDelArchiveItem\initRevision().
|
protected |
The database result row.
Definition at line 33 of file RevisionItemBase.php.
Referenced by RevDelArchivedFileItem\__construct(), RevDelFileItem\__construct(), RevDelRevisionItem\__construct(), RevisionItem\__construct(), __construct(), RevDelArchivedFileItem\initFile(), RevDelFileItem\initFile(), RevDelArchiveItem\initRevision(), and RevDelRevisionItem\initRevision().