1 | <?php |
||
14 | class SMFormInput { |
||
15 | |||
16 | /** |
||
17 | * @since 1.0 |
||
18 | * |
||
19 | * @var iMappingService |
||
20 | */ |
||
21 | protected $service; |
||
22 | |||
23 | /** |
||
24 | * A character to separate multiple locations with. |
||
25 | * |
||
26 | * @since 1.0 |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | const SEPARATOR = ';'; |
||
31 | |||
32 | /** |
||
33 | * Constructor. |
||
34 | * |
||
35 | * @since 1.0 |
||
36 | * |
||
37 | * @param iMappingService $service |
||
38 | */ |
||
39 | public function __construct( iMappingService $service ) { |
||
42 | |||
43 | /** |
||
44 | * Returns an array containing the parameter info. |
||
45 | * |
||
46 | * @since 1.0 |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | protected function getParameterInfo() { |
||
60 | |||
61 | protected function getParameterDefinitions() { |
||
99 | |||
100 | /** |
||
101 | * @since 1.0 |
||
102 | * |
||
103 | * @param string $coordinates |
||
104 | * @param string $inputName |
||
105 | * @param boolean $isMandatory |
||
106 | * @param boolean $isDisabled |
||
107 | * @param array $params |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getInputOutput( $coordinates, $inputName, $isMandatory, $isDisabled, array $params ) { |
||
134 | |||
135 | private function getMapOutput( array $params, $inputName ) { |
||
171 | |||
172 | /** |
||
173 | * @param ProcessingError[] $errors |
||
174 | * |
||
175 | * @return string |
||
176 | */ |
||
177 | private function getFatalOutput( array $errors ) { |
||
188 | |||
189 | private function errorToHtml( ProcessingError $error ) { |
||
195 | |||
196 | /** |
||
197 | * @since 2.0 |
||
198 | * |
||
199 | * @param string $coordinates |
||
200 | * @param string $input_name |
||
201 | * @param boolean $isMandatory |
||
202 | * @param boolean $isDisabled |
||
203 | * @param array $params |
||
204 | * |
||
205 | * @return string |
||
206 | */ |
||
207 | public function getEditorInputOutput( $coordinates, $input_name, $isMandatory, $isDisabled, array $params ) { |
||
232 | |||
233 | /** |
||
234 | * Returns the HTML to display the map input. |
||
235 | * |
||
236 | * @since 1.0 |
||
237 | * |
||
238 | * @param array $params |
||
239 | * @param Parser $parser |
||
240 | * @param string $mapName |
||
241 | * |
||
242 | * @return string |
||
243 | */ |
||
244 | protected function getInputHTML( array $params, Parser $parser, $mapName ) { |
||
260 | |||
261 | /** |
||
262 | * Returns a PHP object to encode to JSON with the map data. |
||
263 | * |
||
264 | * @since 1.0 |
||
265 | * |
||
266 | * @param array $params |
||
267 | * @param Parser $parser |
||
268 | * |
||
269 | * @return mixed |
||
270 | */ |
||
271 | protected function getJSONObject( array $params, Parser $parser ) { |
||
281 | |||
282 | /** |
||
283 | * @since 1.0 |
||
284 | * |
||
285 | * @return array of string |
||
286 | */ |
||
287 | protected function getResourceModules() { |
||
290 | |||
291 | /** |
||
292 | * @since 2.1 |
||
293 | * |
||
294 | * @return string |
||
295 | */ |
||
296 | protected function getAttribs(){ |
||
303 | |||
304 | } |
||
305 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: