Index: trunk/extensions/SemanticMaps/Services/OpenLayers/SM_OpenLayersQP.php |
— | — | @@ -26,6 +26,8 @@ |
27 | 27 | * @see SMMapPrinter::addSpecificMapHTML |
28 | 28 | */ |
29 | 29 | public function addSpecificMapHTML() { |
| 30 | + global $wgLang; |
| 31 | + |
30 | 32 | $mapName = $this->service->getMapId(); |
31 | 33 | |
32 | 34 | $this->output .= Html::element( |
Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | |
37 | 37 | // Only initialize the extension when all dependencies are present. |
38 | 38 | if ( defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' ) ) { |
39 | | - define( 'SM_VERSION', '0.6.5 a3' ); |
| 39 | + define( 'SM_VERSION', '0.6.5 a4' ); |
40 | 40 | |
41 | 41 | $useExtensionPath = version_compare( $wgVersion, '1.16', '>=' ) && isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath; |
42 | 42 | $smgScriptPath = ( $useExtensionPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/SemanticMaps'; |
Index: trunk/extensions/SemanticMaps/Features/FormInputs/SM_FormInput.php |
— | — | @@ -51,6 +51,36 @@ |
52 | 52 | */ |
53 | 53 | public function __construct( MapsMappingService $service ) { |
54 | 54 | $this->service = $service; |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * Returns the specific parameters by first checking if they have been initialized yet, |
| 59 | + * doing to work if this is not the case, and then returning them. |
| 60 | + * |
| 61 | + * @since 0.6.5 |
| 62 | + * |
| 63 | + * @return array |
| 64 | + */ |
| 65 | + public final function getSpecificParameterInfo() { |
| 66 | + if ( $this->specificParameters === false ) { |
| 67 | + $this->specificParameters = array(); |
| 68 | + $this->initSpecificParamInfo( $this->specificParameters ); |
| 69 | + } |
| 70 | + |
| 71 | + return $this->specificParameters; |
| 72 | + } |
| 73 | + |
| 74 | + /** |
| 75 | + * Initializes the specific parameters. |
| 76 | + * |
| 77 | + * Override this method to set parameters specific to a feature service comibination in |
| 78 | + * the inheriting class. |
| 79 | + * |
| 80 | + * @since 0.6.5 |
| 81 | + * |
| 82 | + * @param array $parameters |
| 83 | + */ |
| 84 | + protected function initSpecificParamInfo( array &$parameters ) { |
55 | 85 | } |
56 | 86 | |
57 | 87 | /** |
Index: trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_MapPrinter.php |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | * |
189 | 189 | * @return array |
190 | 190 | */ |
191 | | - public final function getResult( SMWQueryResult $results, array $params, $outputmode ) { |
| 191 | + public final function getResult( /* SMWQueryResult */ $results, /* array */ $params, $outputmode ) { |
192 | 192 | // Skip checks, results with 0 entries are normal. |
193 | 193 | $this->readParameters( $params, $outputmode ); |
194 | 194 | |