X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllLinks.php;h=903dee42d4baae47f969c5b708f06a06797f8636;hb=056cad90bf143334ecef23fadad346bba03c7e51;hp=7b5123d5f2eb27ca64f9e2e8980587836f8f0bc9;hpb=8c9c245f2ff506de275a5cabdcfdd5977a12963e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index 7b5123d5f2..903dee42d4 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -39,7 +39,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { private $useIndex = null; private $props = array(), $propHelp = array(); - public function __construct( $query, $moduleName ) { + public function __construct( ApiQuery $query, $moduleName ) { switch ( $moduleName ) { case 'alllinks': $prefix = 'al'; @@ -116,7 +116,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { } /** - * @param $resultPageSet ApiPageSet + * @param ApiPageSet $resultPageSet * @return void */ private function run( $resultPageSet = null ) { @@ -334,34 +334,10 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { return $paramDescription; } - public function getResultProperties() { - return array( - 'ids' => array( - 'fromid' => 'integer' - ), - 'title' => array( - 'ns' => 'namespace', - 'title' => 'string' - ) - ); - } - public function getDescription() { return $this->description; } - public function getPossibleErrors() { - $m = $this->getModuleName(); - $what = $this->descriptionWhat; - - return array_merge( parent::getPossibleErrors(), array( - array( - 'code' => 'params', - 'info' => "{$m} cannot return corresponding page ids in unique {$what}s mode" - ), - ) ); - } - public function getExamples() { $p = $this->getModulePrefix(); $name = $this->getModuleName();