X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryBacklinks.php;h=c141246d5d2be4ae89923d5c2c0c0fdb88b5c4d3;hb=3191c5cc7e1e97764159e4ea3b594db02373e01d;hp=9502d115b0793737175035578914e3a8a70b995a;hpb=6b9c23cf6d47c4c854fd95acdbb72fd577aae8f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 9502d115b0..c141246d5d 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -75,7 +75,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { ) ); - public function __construct( $query, $moduleName ) { + public function __construct( ApiQuery $query, $moduleName ) { $settings = $this->backlinksSettings[$moduleName]; $prefix = $settings['prefix']; $code = $settings['code']; @@ -116,7 +116,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { } /** - * @param $resultPageSet ApiPageSet + * @param ApiPageSet $resultPageSet * @return void */ private function prepareFirstQuery( $resultPageSet = null ) { @@ -161,7 +161,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { } /** - * @param $resultPageSet ApiPageSet + * @param ApiPageSet $resultPageSet * @return void */ private function prepareSecondQuery( $resultPageSet = null ) { @@ -242,7 +242,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { } /** - * @param $resultPageSet ApiPageSet + * @param ApiPageSet $resultPageSet * @return void */ private function run( $resultPageSet = null ) { @@ -520,17 +520,6 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { ) ); } - public function getResultProperties() { - return array( - '' => array( - 'pageid' => 'integer', - 'ns' => 'namespace', - 'title' => 'string', - 'redirect' => 'boolean' - ) - ); - } - public function getDescription() { switch ( $this->getModuleName() ) { case 'backlinks': @@ -544,18 +533,6 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { } } - public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), - $this->getTitleOrPageIdErrorMessage(), - array( - array( - 'code' => 'bad_image_title', - 'info' => "The title for {$this->getModuleName()} query must be an image" - ), - ) - ); - } - public function getExamples() { static $examples = array( 'backlinks' => array(