Inherited by RevDel_FileItem, RevDel_LogItem, and RevDel_RevisionItem.
Public Member Functions | |
__construct ($list, $row) | |
getId () | |
Get the ID, as it would appear in the ids URL parameter. | |
formatDate () | |
Get the date, formatted with $wgLang. | |
formatTime () | |
Get the time, formatted with $wgLang. | |
getTimestamp () | |
Get the timestamp in MW 14-char form. | |
getAuthorId () | |
Get the author user ID. | |
getAuthorName () | |
Get the author user name. | |
isHideCurrentOp ($newBits) | |
Returns true if the item is "current", and the operation to set the given bits can't be executed for that reason STUB. | |
canView () | |
Returns true if the current user can view the item. | |
canViewContent () | |
Returns true if the current user can view the item text/file. | |
getBits () | |
Get the current deletion bitfield value. | |
getHTML () | |
Get the HTML of the list item. | |
setBits ($newBits) | |
Set the visibility of the item. | |
Public Attributes | |
$special | |
The parent SpecialPage. | |
$list | |
The parent RevDel_List. | |
$row | |
The DB result row. |
Definition at line 1044 of file SpecialRevisiondelete.php.
RevDel_Item::__construct | ( | $ | list, | |
$ | row | |||
) |
$list | RevDel_List | |
$row | DB result row |
Reimplemented in RevDel_RevisionItem, RevDel_ArchiveItem, RevDel_FileItem, and RevDel_ArchivedFileItem.
Definition at line 1058 of file SpecialRevisiondelete.php.
RevDel_Item::canView | ( | ) | [abstract] |
Returns true if the current user can view the item.
Reimplemented in RevDel_RevisionItem, RevDel_FileItem, and RevDel_LogItem.
RevDel_Item::canViewContent | ( | ) | [abstract] |
Returns true if the current user can view the item text/file.
Reimplemented in RevDel_RevisionItem, RevDel_FileItem, and RevDel_LogItem.
RevDel_Item::formatDate | ( | ) |
Get the date, formatted with $wgLang.
Definition at line 1075 of file SpecialRevisiondelete.php.
References $wgLang, and getTimestamp().
RevDel_Item::formatTime | ( | ) |
Get the time, formatted with $wgLang.
Definition at line 1083 of file SpecialRevisiondelete.php.
References $wgLang, and getTimestamp().
RevDel_Item::getAuthorId | ( | ) |
RevDel_Item::getAuthorName | ( | ) |
RevDel_Item::getBits | ( | ) | [abstract] |
Get the current deletion bitfield value.
Reimplemented in RevDel_RevisionItem, RevDel_FileItem, and RevDel_LogItem.
RevDel_Item::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_RevisionItem, RevDel_FileItem, and RevDel_LogItem.
RevDel_Item::getId | ( | ) |
Get the ID, as it would appear in the ids URL parameter.
Reimplemented in RevDel_ArchiveItem, RevDel_FileItem, and RevDel_ArchivedFileItem.
Definition at line 1067 of file SpecialRevisiondelete.php.
Referenced by RevDel_RevisionItem::isHideCurrentOp().
RevDel_Item::getTimestamp | ( | ) |
Get the timestamp in MW 14-char form.
Definition at line 1091 of file SpecialRevisiondelete.php.
References wfTimestamp().
Referenced by formatDate(), and formatTime().
RevDel_Item::isHideCurrentOp | ( | $ | newBits | ) |
Returns true if the item is "current", and the operation to set the given bits can't be executed for that reason STUB.
Reimplemented in RevDel_RevisionItem.
Definition at line 1117 of file SpecialRevisiondelete.php.
RevDel_Item::setBits | ( | $ | newBits | ) | [abstract] |
Set the visibility of the item.
This should do any necessary DB queries.
The DB update query should have a condition which forces it to only update if the value in the DB matches the value fetched earlier with the SELECT. If the update fails because it did not match, the function should return false. This prevents concurrency problems.
Reimplemented in RevDel_RevisionItem, RevDel_ArchiveItem, RevDel_FileItem, RevDel_ArchivedFileItem, and RevDel_LogItem.
RevDel_Item::$list |
The parent RevDel_List.
Definition at line 1049 of file SpecialRevisiondelete.php.
Referenced by RevDel_ArchivedFileItem::__construct(), RevDel_FileItem::__construct(), RevDel_ArchiveItem::__construct(), RevDel_RevisionItem::__construct(), and __construct().
RevDel_Item::$row |
The DB result row.
Definition at line 1052 of file SpecialRevisiondelete.php.
Referenced by RevDel_ArchivedFileItem::__construct(), RevDel_FileItem::__construct(), RevDel_ArchiveItem::__construct(), RevDel_RevisionItem::__construct(), and __construct().
RevDel_Item::$special |