Index: trunk/extensions/Maps/Maps.php |
— | — | @@ -117,6 +117,10 @@ |
118 | 118 | $wgAutoloadClasses['MapsGoogleGeocoder'] = $geoDir . 'Maps_GoogleGeocoder.php'; |
119 | 119 | $wgAutoloadClasses['MapsYahooGeocoder'] = $geoDir . 'Maps_YahooGeocoder.php'; |
120 | 120 | |
| 121 | + // Autoload the "includes/manipulations/" classes. |
| 122 | + $manDir = $incDir . 'manipulations/'; |
| 123 | + $wgAutoloadClasses['MapsParamService'] = $manDir . 'Maps_ParamService.php'; |
| 124 | + |
121 | 125 | // Autoload the "includes/parserHooks/" classes. |
122 | 126 | $phDir = $incDir . '/parserHooks/'; |
123 | 127 | $wgAutoloadClasses['MapsCoordinates'] = $phDir . 'Maps_Coordinates.php'; |
— | — | @@ -158,8 +162,9 @@ |
159 | 163 | 'description' => wfMsgExt( 'maps_desc', 'parsemag', $servicesList ), |
160 | 164 | ); |
161 | 165 | |
162 | | - Validator::addOutputFormat( 'mapdimension', array( 'MapsMapper', 'setMapDimension' ) ); |
163 | | - Validator::addOutputFormat( 'coordinateset', array( 'MapsMapper', 'formatLocation' ) ); |
| 166 | + // TODO |
| 167 | + //Validator::addOutputFormat( 'mapdimension', array( 'MapsMapper', 'setMapDimension' ) ); |
| 168 | + //Validator::addOutputFormat( 'coordinateset', array( 'MapsMapper', 'formatLocation' ) ); |
164 | 169 | |
165 | 170 | return true; |
166 | 171 | } |
Index: trunk/extensions/Maps/includes/services/GoogleMaps3/Maps_GoogleMaps3.php |
— | — | @@ -45,8 +45,9 @@ |
46 | 46 | protected function initParameterInfo( array &$params ) { |
47 | 47 | global $egMapsGMaps3Type, $egMapsGMaps3Types; |
48 | 48 | |
49 | | - Validator::addOutputFormat( 'gmap3type', array( __CLASS__, 'setGMapType' ) ); |
50 | | - Validator::addOutputFormat( 'gmap3types', array( __CLASS__, 'setGMapTypes' ) ); |
| 49 | + // TODO |
| 50 | + //Validator::addOutputFormat( 'gmap3type', array( __CLASS__, 'setGMapType' ) ); |
| 51 | + //Validator::addOutputFormat( 'gmap3types', array( __CLASS__, 'setGMapTypes' ) ); |
51 | 52 | |
52 | 53 | $params['type'] = new Parameter( |
53 | 54 | 'type', |
Index: trunk/extensions/Maps/includes/services/YahooMaps/Maps_YahooMaps.php |
— | — | @@ -43,8 +43,9 @@ |
44 | 44 | protected function initParameterInfo( array &$params ) { |
45 | 45 | global $egMapsYahooAutozoom, $egMapsYahooMapsType, $egMapsYahooMapsTypes, $egMapsYahooMapsZoom, $egMapsYMapControls; |
46 | 46 | |
47 | | - Validator::addOutputFormat( 'ymaptype', array( __CLASS__, 'setYMapType' ) ); |
48 | | - Validator::addOutputFormat( 'ymaptypes', array( __CLASS__, 'setYMapTypes' ) ); |
| 47 | + // TODO |
| 48 | + //Validator::addOutputFormat( 'ymaptype', array( __CLASS__, 'setYMapType' ) ); |
| 49 | + //Validator::addOutputFormat( 'ymaptypes', array( __CLASS__, 'setYMapTypes' ) ); |
49 | 50 | |
50 | 51 | //$params['zoom']->addCriterion( new CriterionInRange( 1, 13 ) ); |
51 | 52 | //$params['zoom']->setDefault( self::getDefaultZoom() ); |
Index: trunk/extensions/Maps/includes/services/OpenLayers/Maps_OpenLayers.php |
— | — | @@ -43,7 +43,8 @@ |
44 | 44 | protected function initParameterInfo( array &$params ) { |
45 | 45 | global $egMapsOLLayers, $egMapsOLControls, $egMapsOpenLayersZoom; |
46 | 46 | |
47 | | - Validator::addOutputFormat( 'olgroups', array( __CLASS__, 'unpackLayerGroups' ) ); |
| 47 | + // TODO |
| 48 | + //Validator::addOutputFormat( 'olgroups', array( __CLASS__, 'unpackLayerGroups' ) ); |
48 | 49 | |
49 | 50 | //$params['zoom']->addCriterion( new CriterionInRange( 0, 19 ) ); |
50 | 51 | //$params['zoom']->setDefault( self::getDefaultZoom() ); |
Index: trunk/extensions/Maps/includes/services/GoogleMaps/Maps_GoogleMaps.php |
— | — | @@ -57,8 +57,9 @@ |
58 | 58 | protected function initParameterInfo( array &$params ) { |
59 | 59 | global $egMapsGoogleMapsType, $egMapsGoogleMapsTypes, $egMapsGoogleAutozoom, $egMapsGMapControls; |
60 | 60 | |
61 | | - Validator::addOutputFormat( 'gmaptype', array( __CLASS__, 'setGMapType' ) ); |
62 | | - Validator::addOutputFormat( 'gmaptypes', array( __CLASS__, 'setGMapTypes' ) ); |
| 61 | + // TODO |
| 62 | + //Validator::addOutputFormat( 'gmaptype', array( __CLASS__, 'setGMapType' ) ); |
| 63 | + //Validator::addOutputFormat( 'gmaptypes', array( __CLASS__, 'setGMapTypes' ) ); |
63 | 64 | |
64 | 65 | //$params['zoom']->addCriterion( new CriterionInRange( 0, 20 ) ); |
65 | 66 | //$params['zoom']->setDefault( self::getDefaultZoom() ); |
Index: trunk/extensions/Maps/includes/parserHooks/Maps_DisplayPoint.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | global $egMapsMapWidth, $egMapsMapHeight, $egMapsDefaultServices, $egMapsDefaultTitle, $egMapsDefaultLabel; |
89 | 89 | |
90 | 90 | // TODO |
91 | | - Validator::addOutputFormat( 'geoPoints', array( __CLASS__, 'formatGeoPoints' ) ); |
| 91 | + //Validator::addOutputFormat( 'geoPoints', array( __CLASS__, 'formatGeoPoints' ) ); |
92 | 92 | |
93 | 93 | $params = MapsMapper::getCommonParameters(); |
94 | 94 | |