RevDel_ArchivedFileItem Class Reference

Item class for a filearchive table row. More...

Inherits RevDel_FileItem.

List of all members.

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.


Detailed Description

Item class for a filearchive table row.

Definition at line 1682 of file SpecialRevisiondelete.php.


Constructor & Destructor Documentation

RevDel_ArchivedFileItem::__construct ( list,
row 
)

Parameters:
$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().


Member Function Documentation

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.

Returns:
boolean success

Reimplemented from RevDel_FileItem.

Definition at line 1692 of file SpecialRevisiondelete.php.

References $dbw, and wfGetDB().


The documentation for this class was generated from the following file:

Generated on Sat Apr 30 22:57:47 2011 for MediaWiki by  doxygen 1.5.9