@@ 161-177 (lines=17) @@ | ||
158 | return 'watch'; |
|
159 | } |
|
160 | ||
161 | public function getAllowedParams( $flags = 0 ) { |
|
162 | $result = [ |
|
163 | 'title' => [ |
|
164 | ApiBase::PARAM_TYPE => 'string', |
|
165 | ApiBase::PARAM_DEPRECATED => true |
|
166 | ], |
|
167 | 'unwatch' => false, |
|
168 | 'continue' => [ |
|
169 | ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', |
|
170 | ], |
|
171 | ]; |
|
172 | if ( $flags ) { |
|
173 | $result += $this->getPageSet()->getFinalParams( $flags ); |
|
174 | } |
|
175 | ||
176 | return $result; |
|
177 | } |
|
178 | ||
179 | protected function getExamplesMessages() { |
|
180 | return [ |
@@ 163-178 (lines=16) @@ | ||
160 | return true; |
|
161 | } |
|
162 | ||
163 | public function getAllowedParams( $flags = 0 ) { |
|
164 | $result = [ |
|
165 | 'rotation' => [ |
|
166 | ApiBase::PARAM_TYPE => [ '90', '180', '270' ], |
|
167 | ApiBase::PARAM_REQUIRED => true |
|
168 | ], |
|
169 | 'continue' => [ |
|
170 | ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', |
|
171 | ], |
|
172 | ]; |
|
173 | if ( $flags ) { |
|
174 | $result += $this->getPageSet()->getFinalParams( $flags ); |
|
175 | } |
|
176 | ||
177 | return $result; |
|
178 | } |
|
179 | ||
180 | public function needsToken() { |
|
181 | return 'csrf'; |