Call Linker methods statically
[lhc/web/wiklou.git] / includes / api / ApiQueryImages.php
index 16d770c..c69ea93 100644 (file)
@@ -48,6 +48,9 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
                $this->run( $resultPageSet );
        }
 
+       /**
+        * @param $resultPageSet ApiPageSet
+        */
        private function run( $resultPageSet = null ) {
                if ( $this->getPageSet()->getGoodTitleCount() == 0 ) {
                        return; // nothing to do
@@ -173,7 +176,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get a list of images used in the [[Main Page]]:',
                        '  api.php?action=query&prop=images&titles=Main%20Page',
@@ -182,6 +185,10 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#images_.2F_im';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }