RevDel_Item Class Reference

Abstract base class for deletable items. More...

Inherited by RevDel_FileItem, RevDel_LogItem, and RevDel_RevisionItem.

List of all members.

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.


Detailed Description

Abstract base class for deletable items.

Definition at line 1044 of file SpecialRevisiondelete.php.


Constructor & Destructor Documentation

RevDel_Item::__construct ( list,
row 
)

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

References $list, and $row.


Member Function Documentation

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 (  ) 

Get the author user ID.

Definition at line 1099 of file SpecialRevisiondelete.php.

RevDel_Item::getAuthorName (  ) 

Get the author user name.

Definition at line 1107 of file SpecialRevisiondelete.php.

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.

Returns:
boolean success

Reimplemented in RevDel_RevisionItem, RevDel_ArchiveItem, RevDel_FileItem, RevDel_ArchivedFileItem, and RevDel_LogItem.


Member Data Documentation

RevDel_Item::$list

RevDel_Item::$row

RevDel_Item::$special

The parent SpecialPage.

Definition at line 1046 of file SpecialRevisiondelete.php.


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

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