X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiPurge.php;h=ec551370df31f314fa1ed89c108c8c8333e4bdec;hb=4b8b0358ebca88abe8aa933becc5fd917d1799f4;hp=7667b23529d627d39966fabfa9eb68c44719168f;hpb=3b07da886220352c3e393ec09b0c674b3968d5ad;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 7667b23529..ec551370df 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -133,7 +133,9 @@ class ApiPurge extends ApiBase { $result = array( 'forcelinkupdate' => false, 'forcerecursivelinkupdate' => false, - 'continue' => '', + 'continue' => array( + ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', + ), ); if ( $flags ) { $result += $this->getPageSet()->getFinalParams( $flags ); @@ -142,25 +144,12 @@ class ApiPurge extends ApiBase { return $result; } - public function getParamDescription() { - return $this->getPageSet()->getFinalParamDescription() - + array( - 'forcelinkupdate' => 'Update the links tables', - 'forcerecursivelinkupdate' => 'Update the links table, and update ' . - 'the links tables for any page that uses this page as a template', - 'continue' => 'When more results are available, use this to continue', - ); - } - - public function getDescription() { - return array( 'Purge the cache for the given titles.', - 'Requires a POST request if the user is not logged in.' - ); - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=purge&titles=Main_Page|API' => 'Purge the "Main Page" and the "API" page', + 'action=purge&titles=Main_Page|API' + => 'apihelp-purge-example-simple', + 'action=purge&generator=allpages&gapnamespace=0&gaplimit=10' + => 'apihelp-purge-example-generator', ); }