SECURITY: Don't exclude .htaccess files from `git archive`
[lhc/web/wiklou.git] / includes / specialpage / QueryPage.php
index b20f222..f642106 100644 (file)
@@ -21,7 +21,7 @@
  * @ingroup SpecialPage
  */
 
-use Wikimedia\Rdbms\ResultWrapper;
+use Wikimedia\Rdbms\IResultWrapper;
 use Wikimedia\Rdbms\IDatabase;
 use Wikimedia\Rdbms\DBError;
 
@@ -387,7 +387,7 @@ abstract class QueryPage extends SpecialPage {
         * Run the query and return the result
         * @param int|bool $limit Numerical limit or false for no limit
         * @param int|bool $offset Numerical offset or false for no offset
-        * @return ResultWrapper
+        * @return IResultWrapper
         * @since 1.18
         */
        public function reallyDoQuery( $limit, $offset = false ) {
@@ -439,7 +439,7 @@ abstract class QueryPage extends SpecialPage {
         * Somewhat deprecated, you probably want to be using execute()
         * @param int|bool $offset
         * @param int|bool $limit
-        * @return ResultWrapper
+        * @return IResultWrapper
         */
        public function doQuery( $offset = false, $limit = false ) {
                if ( $this->isCached() && $this->isCacheable() ) {
@@ -453,7 +453,7 @@ abstract class QueryPage extends SpecialPage {
         * Fetch the query results from the query cache
         * @param int|bool $limit Numerical limit or false for no limit
         * @param int|bool $offset Numerical offset or false for no offset
-        * @return ResultWrapper
+        * @return IResultWrapper
         * @since 1.18
         */
        public function fetchFromCache( $limit, $offset = false ) {
@@ -685,7 +685,7 @@ abstract class QueryPage extends SpecialPage {
         * @param OutputPage $out OutputPage to print to
         * @param Skin $skin User skin to use
         * @param IDatabase $dbr Database (read) connection to use
-        * @param ResultWrapper $res Result pointer
+        * @param IResultWrapper $res Result pointer
         * @param int $num Number of available result rows
         * @param int $offset Paging offset
         */
@@ -751,7 +751,7 @@ abstract class QueryPage extends SpecialPage {
        /**
         * Do any necessary preprocessing of the result object.
         * @param IDatabase $db
-        * @param ResultWrapper $res
+        * @param IResultWrapper $res
         */
        function preprocessResults( $db, $res ) {
        }
@@ -853,12 +853,12 @@ abstract class QueryPage extends SpecialPage {
         * title and optional the namespace field) and executes the batch. This operation will pre-cache
         * LinkCache information like page existence and information for stub color and redirect hints.
         *
-        * @param ResultWrapper $res The ResultWrapper object to process. Needs to include the title
+        * @param IResultWrapper $res The ResultWrapper object to process. Needs to include the title
         *  field and namespace field, if the $ns parameter isn't set.
         * @param null $ns Use this namespace for the given titles in the ResultWrapper object,
         *  instead of the namespace value of $res.
         */
-       protected function executeLBFromResultWrapper( ResultWrapper $res, $ns = null ) {
+       protected function executeLBFromResultWrapper( IResultWrapper $res, $ns = null ) {
                if ( !$res->numRows() ) {
                        return;
                }