| @@ 89-102 (lines=14) @@ | ||
| 86 | return true; |
|
| 87 | } |
|
| 88 | ||
| 89 | public function getAllowedParams() { |
|
| 90 | return [ |
|
| 91 | 'rcid' => [ |
|
| 92 | ApiBase::PARAM_TYPE => 'integer' |
|
| 93 | ], |
|
| 94 | 'revid' => [ |
|
| 95 | ApiBase::PARAM_TYPE => 'integer' |
|
| 96 | ], |
|
| 97 | 'tags' => [ |
|
| 98 | ApiBase::PARAM_TYPE => 'tags', |
|
| 99 | ApiBase::PARAM_ISMULTI => true, |
|
| 100 | ], |
|
| 101 | ]; |
|
| 102 | } |
|
| 103 | ||
| 104 | public function needsToken() { |
|
| 105 | return 'patrol'; |
|
| @@ 101-113 (lines=13) @@ | ||
| 98 | return true; |
|
| 99 | } |
|
| 100 | ||
| 101 | public function getAllowedParams() { |
|
| 102 | return [ |
|
| 103 | 'id' => [ |
|
| 104 | ApiBase::PARAM_TYPE => 'integer', |
|
| 105 | ], |
|
| 106 | 'user' => null, |
|
| 107 | 'reason' => '', |
|
| 108 | 'tags' => [ |
|
| 109 | ApiBase::PARAM_TYPE => 'tags', |
|
| 110 | ApiBase::PARAM_ISMULTI => true, |
|
| 111 | ], |
|
| 112 | ]; |
|
| 113 | } |
|
| 114 | ||
| 115 | public function needsToken() { |
|
| 116 | return 'csrf'; |
|