Some protection move log cleanup (bug 15754)
[lhc/web/wiklou.git] / includes / HistoryBlob.php
index 719ac8b..3772926 100644 (file)
@@ -1,11 +1,8 @@
 <?php
-/**
- *
- */
 
 /**
  * Pure virtual parent
- * @todo document (needs a one-sentence top-level class description, that answers the question: "what is a HistoryBlob?") 
+ * @todo document (needs a one-sentence top-level class description, that answers the question: "what is a HistoryBlob?")
  */
 interface HistoryBlob
 {
@@ -53,8 +50,8 @@ interface HistoryBlob
  */
 class ConcatenatedGzipHistoryBlob implements HistoryBlob
 {
-       private $mVersion = 0, $mCompressed = false, $mItems = array(), $mDefaultHash = '';
-       private $mFast = 0, $mSize = 0;
+       public $mVersion = 0, $mCompressed = false, $mItems = array(), $mDefaultHash = '';
+       public $mFast = 0, $mSize = 0;
 
        /** Constructor */
        public function ConcatenatedGzipHistoryBlob() {
@@ -123,7 +120,7 @@ class ConcatenatedGzipHistoryBlob implements HistoryBlob
        }
 
        /** @todo document */
-       private function compress() {
+       public function compress() {
                if ( !$this->mCompressed  ) {
                        $this->mItems = gzdeflate( serialize( $this->mItems ) );
                        $this->mCompressed = true;
@@ -131,7 +128,7 @@ class ConcatenatedGzipHistoryBlob implements HistoryBlob
        }
 
        /** @todo document */
-       private function uncompress() {
+       public function uncompress() {
                if ( $this->mCompressed ) {
                        $this->mItems = unserialize( gzinflate( $this->mItems ) );
                        $this->mCompressed = false;
@@ -308,6 +305,3 @@ class HistoryBlobCurStub {
                return $row->cur_text;
        }
 }
-
-
-?>