@@ 90-103 (lines=14) @@ | ||
87 | return true; |
|
88 | } |
|
89 | ||
90 | public function getAllowedParams() { |
|
91 | return [ |
|
92 | 'target' => [ |
|
93 | ApiBase::PARAM_TYPE => 'string', |
|
94 | ApiBase::PARAM_REQUIRED => true |
|
95 | ], |
|
96 | 'subject' => null, |
|
97 | 'text' => [ |
|
98 | ApiBase::PARAM_TYPE => 'text', |
|
99 | ApiBase::PARAM_REQUIRED => true |
|
100 | ], |
|
101 | 'ccme' => false, |
|
102 | ]; |
|
103 | } |
|
104 | ||
105 | public function needsToken() { |
|
106 | return 'csrf'; |
@@ 124-138 (lines=15) @@ | ||
121 | return true; |
|
122 | } |
|
123 | ||
124 | public function getAllowedParams() { |
|
125 | return [ |
|
126 | 'filename' => [ |
|
127 | ApiBase::PARAM_TYPE => 'string', |
|
128 | ApiBase::PARAM_REQUIRED => true, |
|
129 | ], |
|
130 | 'comment' => [ |
|
131 | ApiBase::PARAM_DFLT => '', |
|
132 | ], |
|
133 | 'archivename' => [ |
|
134 | ApiBase::PARAM_TYPE => 'string', |
|
135 | ApiBase::PARAM_REQUIRED => true, |
|
136 | ], |
|
137 | ]; |
|
138 | } |
|
139 | ||
140 | public function needsToken() { |
|
141 | return 'csrf'; |