4 More dieUsage calls
authorSam Reed <reedy@users.mediawiki.org>
Sat, 13 Feb 2010 01:38:12 +0000 (01:38 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 13 Feb 2010 01:38:12 +0000 (01:38 +0000)
Bar some from ApiBase.. These are done..

includes/api/ApiQueryDuplicateFiles.php
includes/api/ApiQueryImages.php
includes/api/ApiQueryInfo.php
includes/api/ApiQueryLangLinks.php

index 9d5484b..e8d28a2 100644 (file)
@@ -148,6 +148,12 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase {
        public function getDescription() {
                return 'List all files that are duplicates of the given file(s).';
        }
+       
+       public function getPossibleErrors() {
+               return array_merge( parent::getPossibleErrors(), array(
+                       array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
+               ) );
+       }
 
        protected function getExamples() {
                return array (  'api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles',
index b57971c..ba6fdcb 100644 (file)
@@ -145,6 +145,12 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
        public function getDescription() {
                return 'Returns all images contained on the given page(s)';
        }
+       
+       public function getPossibleErrors() {
+               return array_merge( parent::getPossibleErrors(), array(
+                       array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
+               ) );
+       }
 
        protected function getExamples() {
                return array (
index 5f31b11..b1d1e9b 100644 (file)
@@ -596,6 +596,12 @@ class ApiQueryInfo extends ApiQueryBase {
        public function getDescription() {
                return 'Get basic page information such as namespace, title, last touched date, ...';
        }
+       
+       public function getPossibleErrors() {
+               return array_merge( parent::getPossibleErrors(), array(
+                       array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
+               ) );
+       }
 
        protected function getExamples() {
                return array (
index acc4f82..8e54950 100644 (file)
@@ -116,6 +116,12 @@ class ApiQueryLangLinks extends ApiQueryBase {
        public function getDescription() {
                return 'Returns all interlanguage links from the given page(s)';
        }
+       
+       public function getPossibleErrors() {
+               return array_merge( parent::getPossibleErrors(), array(
+                       array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
+               ) );
+       }
 
        protected function getExamples() {
                return array (