| Index: trunk/extensions/CentralAuth/ApiQueryGlobalUserInfo.php |
| — | — | @@ -167,7 +167,7 @@ |
| 168 | 168 | return 'Show information about a global user.'; |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | | - protected function getExamples() { |
| | 171 | + public function getExamples() { |
| 172 | 172 | return array( |
| 173 | 173 | 'api.php?action=query&meta=globaluserinfo', |
| 174 | 174 | 'api.php?action=query&meta=globaluserinfo&guiuser=Catrope&guiprop=groups|merged|unattached' |
| Index: trunk/extensions/FlaggedRevs/api/reports/ApiQueryConfiguredPages.php |
| — | — | @@ -194,7 +194,7 @@ |
| 195 | 195 | return 'Enumerate all pages that have custom review configurations'; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | | - protected function getExamples() { |
| | 198 | + public function getExamples() { |
| 199 | 199 | return array( |
| 200 | 200 | 'Show a list of pages with custom review configurations', |
| 201 | 201 | ' api.php?action=query&list=configuredpages&cpnamespace=0', |
| Index: trunk/extensions/FlaggedRevs/api/reports/ApiFlagConfig.php |
| — | — | @@ -76,7 +76,7 @@ |
| 77 | 77 | ); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | | - protected function getExamples() { |
| | 80 | + public function getExamples() { |
| 81 | 81 | return 'api.php?action=flagconfig'; |
| 82 | 82 | } |
| 83 | 83 | |
| Index: trunk/extensions/FlaggedRevs/api/reports/ApiQueryFlagged.php |
| — | — | @@ -76,7 +76,7 @@ |
| 77 | 77 | ); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | | - protected function getExamples() { |
| | 80 | + public function getExamples() { |
| 81 | 81 | return array ( |
| 82 | 82 | 'api.php?action=query&prop=info|flagged&titles=Main%20Page', |
| 83 | 83 | 'api.php?action=query&generator=allpages&gapfrom=K&prop=flagged' |
| Index: trunk/extensions/FlaggedRevs/api/reports/ApiQueryOldreviewedpages.php |
| — | — | @@ -232,7 +232,7 @@ |
| 233 | 233 | ) ); |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | | - protected function getExamples() { |
| | 236 | + public function getExamples() { |
| 237 | 237 | return array( |
| 238 | 238 | 'Show a list of pages with pending unreviewed changes', |
| 239 | 239 | ' api.php?action=query&list=oldreviewedpages&ornamespace=0', |
| Index: trunk/extensions/FlaggedRevs/api/reports/ApiQueryReviewedpages.php |
| — | — | @@ -190,7 +190,7 @@ |
| 191 | 191 | return 'Enumerates pages that have a reviewed version'; |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | | - protected function getExamples() { |
| | 194 | + public function getExamples() { |
| 195 | 195 | return array ( |
| 196 | 196 | 'Show a list of reviewed pages', |
| 197 | 197 | ' api.php?action=query&list=reviewedpages&rpnamespace=0&rpfilterlevel=0', |
| Index: trunk/extensions/FlaggedRevs/api/reports/ApiQueryUnreviewedpages.php |
| — | — | @@ -174,7 +174,7 @@ |
| 175 | 175 | return 'Enumerates pages that have not been reviewed to a given quality level ("filterlevel")'; |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | | - protected function getExamples() { |
| | 178 | + public function getExamples() { |
| 179 | 179 | return array ( |
| 180 | 180 | 'Show a list of unreviewed pages', |
| 181 | 181 | ' api.php?action=query&list=unreviewedpages&urnamespace=0&urfilterlevel=0', |
| Index: trunk/extensions/FlaggedRevs/api/actions/ApiReviewActivity.php |
| — | — | @@ -137,7 +137,7 @@ |
| 138 | 138 | return false; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | | - protected function getExamples() { |
| | 141 | + public function getExamples() { |
| 142 | 142 | return 'api.php?action=reviewactivity&pageid=12345&reviewing=1'; |
| 143 | 143 | } |
| 144 | 144 | |
| Index: trunk/extensions/FlaggedRevs/api/actions/ApiReview.php |
| — | — | @@ -204,7 +204,7 @@ |
| 205 | 205 | return ''; |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | | - protected function getExamples() { |
| | 208 | + public function getExamples() { |
| 209 | 209 | return 'api.php?action=review&revid=12345&token=123AB&flag_accuracy=1&comment=Ok'; |
| 210 | 210 | } |
| 211 | 211 | |
| Index: trunk/extensions/FlaggedRevs/api/actions/ApiStabilize.php |
| — | — | @@ -180,7 +180,7 @@ |
| 181 | 181 | ) ); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | | - protected function getExamples() { |
| | 184 | + public function getExamples() { |
| 185 | 185 | return 'api.php?action=stabilize&title=Test&default=stable&reason=Test&token=123ABC'; |
| 186 | 186 | } |
| 187 | 187 | |
| — | — | @@ -266,7 +266,7 @@ |
| 267 | 267 | ) ); |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | | - protected function getExamples() { |
| | 270 | + public function getExamples() { |
| 271 | 271 | return 'api.php?action=stabilize&title=Test&protectlevel=none&reason=Test&token=123ABC'; |
| 272 | 272 | } |
| 273 | 273 | |
| Index: trunk/extensions/EmailCapture/api/ApiEmailCapture.php |
| — | — | @@ -97,7 +97,7 @@ |
| 98 | 98 | ) ); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | | - protected function getExamples() { |
| | 101 | + public function getExamples() { |
| 102 | 102 | return array( |
| 103 | 103 | 'api.php?action=emailcapture' |
| 104 | 104 | ); |
| Index: trunk/extensions/SiteMatrix/SiteMatrixApi.php |
| — | — | @@ -134,7 +134,7 @@ |
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | | - protected function getAllowedParams() { |
| | 138 | + public function getAllowedParams() { |
| 139 | 139 | return array( |
| 140 | 140 | 'type' => array( |
| 141 | 141 | ApiBase::PARAM_ISMULTI => true, |
| — | — | @@ -157,14 +157,14 @@ |
| 158 | 158 | ); |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | | - protected function getParamDescription() { |
| | 161 | + public function getParamDescription() { |
| 162 | 162 | return array( |
| 163 | 163 | 'type' => 'Filter the Site Matrix by type', |
| 164 | 164 | 'state' => 'Filter the Site Matrix by wiki state', |
| 165 | 165 | ); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | | - protected function getDescription() { |
| | 168 | + public function getDescription() { |
| 169 | 169 | return array( |
| 170 | 170 | 'Get Wikimedia sites list', |
| 171 | 171 | 'The code is either the unique identifier for specials else, for languages, the project code', |
| — | — | @@ -179,7 +179,7 @@ |
| 180 | 180 | ); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | | - protected function getExamples() { |
| | 183 | + public function getExamples() { |
| 184 | 184 | return array( |
| 185 | 185 | 'api.php?action=sitematrix', |
| 186 | 186 | ); |
| Index: trunk/extensions/GlobalUsage/ApiQueryGlobalUsage.php |
| — | — | @@ -151,7 +151,7 @@ |
| 152 | 152 | ) ); |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | | - protected function getExamples() { |
| | 155 | + public function getExamples() { |
| 156 | 156 | return array ( |
| 157 | 157 | "Get usage of File:Example.jpg:", |
| 158 | 158 | " api.php?action=query&prop=globalusage&titles=File:Example.jpg", |
| Index: trunk/extensions/GlobalBlocking/ApiQueryGlobalBlocks.php |
| — | — | @@ -220,7 +220,7 @@ |
| 221 | 221 | ) ); |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | | - protected function getExamples() { |
| | 224 | + public function getExamples() { |
| 225 | 225 | return array ( 'api.php?action=query&list=globalblocks', |
| 226 | 226 | 'api.php?action=query&list=globalblocks&bgip=217.121.114.116' |
| 227 | 227 | ); |
| Index: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php |
| — | — | @@ -242,7 +242,7 @@ |
| 243 | 243 | return 'This module returns a feed of discussion threads'; |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | | - protected function getExamples() { |
| | 246 | + public function getExamples() { |
| 247 | 247 | return array ( |
| 248 | 248 | 'api.php?action=feedthreads', |
| 249 | 249 | 'api.php?action=feedthreads&type=replies&thread=Thread:Foo', |
| Index: trunk/extensions/LiquidThreads/api/ApiQueryLQTThreads.php |
| — | — | @@ -376,7 +376,7 @@ |
| 377 | 377 | return 'Show details of LiquidThreads threads.'; |
| 378 | 378 | } |
| 379 | 379 | |
| 380 | | - protected function getExamples() { |
| | 380 | + public function getExamples() { |
| 381 | 381 | return array( |
| 382 | 382 | 'api.php?action=query&list=threads&thpage=Talk:Main_Page', |
| 383 | 383 | 'api.php?action=query&list=threads&thid=1|2|3|4&thprop=id|subject|modified' |
| Index: trunk/extensions/ProofreadPage/ApiQueryProofread.php |
| — | — | @@ -91,7 +91,7 @@ |
| 92 | 92 | return 'Returns information about the current proofread status of the given pages.'; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | | - protected function getExamples() { |
| | 95 | + public function getExamples() { |
| 96 | 96 | return array( |
| 97 | 97 | 'api.php?action=query&generator=allpages&gapnamespace=104&prop=proofread' |
| 98 | 98 | ); |
| Index: trunk/extensions/Gadgets/ApiQueryGadgets.php |
| — | — | @@ -184,7 +184,7 @@ |
| 185 | 185 | ); |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | | - protected function getExamples() { |
| | 188 | + public function getExamples() { |
| 189 | 189 | $params = $this->getAllowedParams(); |
| 190 | 190 | $allProps = implode( '|', $params['prop'][ApiBase::PARAM_TYPE] ); |
| 191 | 191 | return array( |
| Index: trunk/extensions/Gadgets/ApiQueryGadgetCategories.php |
| — | — | @@ -104,7 +104,7 @@ |
| 105 | 105 | ); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | | - protected function getExamples() { |
| | 108 | + public function getExamples() { |
| 109 | 109 | $params = $this->getAllowedParams(); |
| 110 | 110 | $allProps = implode( '|', $params['prop'][ApiBase::PARAM_TYPE] ); |
| 111 | 111 | return array( |
| Index: trunk/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php |
| — | — | @@ -104,7 +104,7 @@ |
| 105 | 105 | return 'Validate an article title, filename, or username against the TitleBlacklist.'; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | | - protected function getExamples() { |
| | 108 | + public function getExamples() { |
| 109 | 109 | return array( |
| 110 | 110 | 'api.php?action=titleblacklist&tbtitle=Foo', |
| 111 | 111 | 'api.php?action=titleblacklist&tbtitle=Bar&tbaction=create', |