Merge "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git] / includes / search / SearchResultSet.php
index 978db27..f25c728 100644 (file)
@@ -152,6 +152,7 @@ class SearchResultSet {
        /**
         * Return a result set of hits on other (multiple) wikis associated with this one
         *
+        * @param int $type
         * @return SearchResultSet[]
         */
        function getInterwikiResults( $type = self::SECONDARY_RESULTS ) {
@@ -161,6 +162,7 @@ class SearchResultSet {
        /**
         * Check if there are results on other wikis
         *
+        * @param int $type
         * @return bool
         */
        function hasInterwikiResults( $type = self::SECONDARY_RESULTS ) {
@@ -264,4 +266,14 @@ class SearchResultSet {
                $result->setExtensionData( $this->extraData[$id] );
                return $this->extraData[$id];
        }
+
+       /**
+        * @return int|null The offset the current page starts at. Typically
+        *  this should be null to allow the UI to decide on its own, but in
+        *  special cases like interleaved AB tests specifying explicitly is
+        *  necessary.
+        */
+       public function getOffset() {
+               return null;
+       }
 }