From: Aaron Schulz Date: Sun, 19 Oct 2008 05:47:23 +0000 (+0000) Subject: Add getVisibility() X-Git-Tag: 1.31.0-rc.0~44691 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=9d274ccce75e7a57d7e0974f527d2ced7ceb796b;p=lhc%2Fweb%2Fwiklou.git Add getVisibility() --- diff --git a/includes/Revision.php b/includes/Revision.php index 857c50f6e9..42bffeaf6a 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -544,6 +544,13 @@ class Revision { public function isDeleted( $field ) { return ($this->mDeleted & $field) == $field; } + + /** + * Get the deletion bitfield of the revision + */ + public function getVisibility() { + return (int)$this->mDeleted; + } /** * Fetch revision text if it's available to the specified audience.