add Referrer for stub
authorDomas Mituzas <midom@users.mediawiki.org>
Sun, 21 Aug 2005 13:53:49 +0000 (13:53 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sun, 21 Aug 2005 13:53:49 +0000 (13:53 +0000)
includes/HistoryBlob.php

index b407a83..5875885 100644 (file)
@@ -182,7 +182,7 @@ $wgBlobCache = array();
  * @package MediaWiki
  */
 class HistoryBlobStub {
-       var $mOldId, $mHash;
+       var $mOldId, $mHash, $mRef;
 
        /** @todo document */
        function HistoryBlobStub( $hash = '', $oldid = 0 ) {
@@ -197,6 +197,20 @@ class HistoryBlobStub {
                $this->mOldId = $id;
        }
 
+      /**
+       * Sets the location (old_id) of the referring object
+       */
+      function setReferrer( $id ) {
+              $this->mRef = $id;
+      }
+
+      /**
+       * Gets the location of the referring object
+       */
+      function getReferrer() {
+              return $this->mRef;
+      }
+
        /** @todo document */
        function getText() {
                global $wgBlobCache;