1 | <?php |
||
18 | class MapsDocFunction extends ParserHook { |
||
|
|||
19 | |||
20 | /** |
||
21 | * Field to store the value of the language parameter. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $language; |
||
26 | |||
27 | /** |
||
28 | * Renders and returns the output. |
||
29 | * |
||
30 | * @see ParserHook::render |
||
31 | * |
||
32 | * @param array $parameters |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function render( array $parameters ) { |
||
45 | |||
46 | private function getServiceParameters( MapsFactory $factory, string $service ) { |
||
57 | |||
58 | /** |
||
59 | * Returns the wikitext for a table listing the provided parameters. |
||
60 | */ |
||
61 | private function getParameterTable( MapsFactory $factory, array $parameters ): string { |
||
94 | |||
95 | /** |
||
96 | * Returns the wikitext for a table row describing a single parameter. |
||
97 | * |
||
98 | * @param ParamDefinition $parameter |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | private function getDescriptionRow( ParamDefinition $parameter ) { |
||
127 | |||
128 | /** |
||
129 | * Message function that takes into account the language parameter. |
||
130 | * |
||
131 | * @param string $key |
||
132 | * @param ... $args |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | private function msg() { |
||
141 | |||
142 | /** |
||
143 | * @see ParserHook::getDescription() |
||
144 | */ |
||
145 | public function getMessage() { |
||
148 | |||
149 | /** |
||
150 | * Gets the name of the parser hook. |
||
151 | * |
||
152 | * @see ParserHook::getName |
||
153 | * |
||
154 | * @return string |
||
155 | */ |
||
156 | 2 | protected function getName() { |
|
159 | |||
160 | /** |
||
161 | * Returns an array containing the parameter info. |
||
162 | * |
||
163 | * @see ParserHook::getParameterInfo |
||
164 | * |
||
165 | * @return array |
||
166 | */ |
||
167 | 3 | protected function getParameterInfo( $type ) { |
|
187 | |||
188 | /** |
||
189 | * Returns the list of default parameters. |
||
190 | * |
||
191 | * @see ParserHook::getDefaultParameters |
||
192 | * |
||
193 | * @return array |
||
194 | */ |
||
195 | 1 | protected function getDefaultParameters( $type ) { |
|
198 | |||
199 | } |
||
200 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.