Inherits RevDel_FileItem.
Public Member Functions | |
__construct ($list, $row) | |
getId () | |
Get the ID, as it would appear in the ids URL parameter. | |
setBits ($bits) | |
Set the visibility of the item. | |
Protected Member Functions | |
getLink () | |
Get the link to the file. |
Definition at line 1682 of file SpecialRevisiondelete.php.
RevDel_ArchivedFileItem::__construct | ( | $ | list, | |
$ | row | |||
) |
$list | RevDel_List | |
$row | DB result row |
Reimplemented from RevDel_FileItem.
Definition at line 1683 of file SpecialRevisiondelete.php.
References RevDel_Item::$list, RevDel_Item::$row, and ArchivedFile::newFromRow().
RevDel_ArchivedFileItem::getId | ( | ) |
Get the ID, as it would appear in the ids URL parameter.
Reimplemented from RevDel_FileItem.
Definition at line 1688 of file SpecialRevisiondelete.php.
RevDel_ArchivedFileItem::getLink | ( | ) | [protected] |
Get the link to the file.
Overridden by RevDel_ArchivedFileItem.
Reimplemented from RevDel_FileItem.
Definition at line 1705 of file SpecialRevisiondelete.php.
References $wgLang, $wgUser, RevDel_FileItem::canViewContent(), SpecialPage::getTitleFor(), and RevDel_FileItem::isDeleted().
RevDel_ArchivedFileItem::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_FileItem.
Definition at line 1692 of file SpecialRevisiondelete.php.