Inherits RevDel_Item.
Inherited by RevDel_ArchivedFileItem.
Public Member Functions | |
__construct ($list, $row) | |
getId () | |
Get the ID, as it would appear in the ids URL parameter. | |
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. | |
setBits ($bits) | |
Set the visibility of the item. | |
isDeleted () | |
getHTML () | |
Get the HTML of the list item. | |
Public Attributes | |
$file | |
Protected Member Functions | |
getLink () | |
Get the link to the file. | |
getUserTools () | |
Generate a user tool link cluster if the current user is allowed to view it. | |
getComment () | |
Wrap and format the file's comment block, if the current user is allowed to view it. |
Definition at line 1503 of file SpecialRevisiondelete.php.
RevDel_FileItem::__construct | ( | $ | list, | |
$ | row | |||
) |
$list | RevDel_List | |
$row | DB result row |
Reimplemented from RevDel_Item.
Reimplemented in RevDel_ArchivedFileItem.
Definition at line 1506 of file SpecialRevisiondelete.php.
References RevDel_Item::$list, RevDel_Item::$row, and RepoGroup::singleton().
RevDel_FileItem::canView | ( | ) |
Returns true if the current user can view the item.
Reimplemented from RevDel_Item.
Definition at line 1516 of file SpecialRevisiondelete.php.
References File::DELETED_RESTRICTED.
RevDel_FileItem::canViewContent | ( | ) |
Returns true if the current user can view the item text/file.
Reimplemented from RevDel_Item.
Definition at line 1520 of file SpecialRevisiondelete.php.
References File::DELETED_FILE.
Referenced by RevDel_ArchivedFileItem::getLink(), and getLink().
RevDel_FileItem::getBits | ( | ) |
Get the current deletion bitfield value.
Reimplemented from RevDel_Item.
Definition at line 1524 of file SpecialRevisiondelete.php.
RevDel_FileItem::getComment | ( | ) | [protected] |
Wrap and format the file's comment block, if the current user is allowed to view it.
Definition at line 1622 of file SpecialRevisiondelete.php.
References File::DELETED_COMMENT, and wfMsgHtml().
Referenced by getHTML().
RevDel_FileItem::getHTML | ( | ) |
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 from RevDel_Item.
Definition at line 1634 of file SpecialRevisiondelete.php.
References $wgLang, getComment(), getLink(), getUserTools(), wfMsg(), and wfMsgExt().
RevDel_FileItem::getId | ( | ) |
Get the ID, as it would appear in the ids URL parameter.
Reimplemented from RevDel_Item.
Reimplemented in RevDel_ArchivedFileItem.
Definition at line 1511 of file SpecialRevisiondelete.php.
RevDel_FileItem::getLink | ( | ) | [protected] |
Get the link to the file.
Overridden by RevDel_ArchivedFileItem.
Reimplemented in RevDel_ArchivedFileItem.
Definition at line 1574 of file SpecialRevisiondelete.php.
References $url, $wgLang, $wgUser, canViewContent(), Xml::element(), and isDeleted().
Referenced by getHTML().
RevDel_FileItem::getUserTools | ( | ) | [protected] |
Generate a user tool link cluster if the current user is allowed to view it.
Definition at line 1603 of file SpecialRevisiondelete.php.
References Revision::DELETED_USER, and wfMsgHtml().
Referenced by getHTML().
RevDel_FileItem::isDeleted | ( | ) |
Definition at line 1566 of file SpecialRevisiondelete.php.
References File::DELETED_FILE.
Referenced by RevDel_ArchivedFileItem::getLink(), getLink(), and setBits().
RevDel_FileItem::setBits | ( | $ | newBits | ) |
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 from RevDel_Item.
Reimplemented in RevDel_ArchivedFileItem.
Definition at line 1528 of file SpecialRevisiondelete.php.
References $dbw, File::DELETED_FILE, isDeleted(), and wfGetDB().
RevDel_FileItem::$file |
Definition at line 1504 of file SpecialRevisiondelete.php.