From 9d274ccce75e7a57d7e0974f527d2ced7ceb796b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 19 Oct 2008 05:47:23 +0000 Subject: [PATCH] Add getVisibility() --- includes/Revision.php | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.20.1