Add getVisibility()
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 19 Oct 2008 05:47:23 +0000 (05:47 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 19 Oct 2008 05:47:23 +0000 (05:47 +0000)
includes/Revision.php

index 857c50f..42bffea 100644 (file)
@@ -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.