X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQuery.php;h=43369074ea35d7213d1604f3cdd6106cd0970752;hb=953932c621f24efc06760c430fdbadce21e8767b;hp=58b670a2b46af78352d52a73670526de510dea04;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 58b670a2b4..43369074ea 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -185,33 +185,6 @@ class ApiQuery extends ApiBase { return $this->mPageSet; } - /** - * Get the generators array mapping module names to class names - * @deprecated since 1.21, list of generators is maintained by ApiPageSet - * @return array Array(modulename => classname) - */ - public function getGenerators() { - wfDeprecated( __METHOD__, '1.21' ); - $gens = []; - foreach ( $this->mModuleMgr->getNamesWithClasses() as $name => $class ) { - if ( is_subclass_of( $class, 'ApiQueryGeneratorBase' ) ) { - $gens[$name] = $class; - } - } - - return $gens; - } - - /** - * Get whether the specified module is a prop, list or a meta query module - * @deprecated since 1.21, use getModuleManager()->getModuleGroup() - * @param string $moduleName Name of the module to find type for - * @return string|null - */ - function getModuleType( $moduleName ) { - return $this->getModuleManager()->getModuleGroup( $moduleName ); - } - /** * @return ApiFormatRaw|null */ @@ -451,22 +424,6 @@ class ApiQuery extends ApiBase { } } - /** - * This method is called by the generator base when generator in the smart-continue - * mode tries to set 'query-continue' value. ApiQuery stores those values separately - * until the post-processing when it is known if the generation should continue or repeat. - * @deprecated since 1.24 - * @param ApiQueryGeneratorBase $module Generator module - * @param string $paramName - * @param mixed $paramValue - * @return bool True if processed, false if this is a legacy continue - */ - public function setGeneratorContinue( $module, $paramName, $paramValue ) { - wfDeprecated( __METHOD__, '1.24' ); - $this->getContinuationManager()->addGeneratorContinueParam( $module, $paramName, $paramValue ); - return !$this->getParameter( 'rawcontinue' ); - } - /** * @param ApiPageSet $pageSet Pages to be exported * @param ApiResult $result Result to output to