http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73721

Revision: 73721
Author:   jeroendedauw
Date:     2010-09-25 05:47:35 +0000 (Sat, 25 Sep 2010)

Log Message:
-----------
Changes for 0.7 - Added Google Maps map type parameter manipulation class

Modified Paths:
--------------
    trunk/extensions/Maps/includes/services/GoogleMaps/GoogleMaps.php
    trunk/extensions/Maps/includes/services/GoogleMaps/Maps_GoogleMaps.php

Added Paths:
-----------
    trunk/extensions/Maps/includes/services/GoogleMaps/Maps_ParamGMapType.php

Modified: trunk/extensions/Maps/includes/services/GoogleMaps/GoogleMaps.php
===================================================================
--- trunk/extensions/Maps/includes/services/GoogleMaps/GoogleMaps.php   
2010-09-25 05:39:21 UTC (rev 73720)
+++ trunk/extensions/Maps/includes/services/GoogleMaps/GoogleMaps.php   
2010-09-25 05:47:35 UTC (rev 73721)
@@ -36,7 +36,8 @@
        $wgAutoloadClasses['MapsGoogleMaps']                    = dirname( 
__FILE__ ) . '/Maps_GoogleMaps.php';
        $wgAutoloadClasses['CriterionGoogleOverlay']    = dirname( __FILE__ ) . 
'/CriterionGoogleOverlay.php';
        $wgAutoloadClasses['MapsGoogleMapsDispMap']     = dirname( __FILE__ ) . 
'/Maps_GoogleMapsDispMap.php';
-       $wgAutoloadClasses['MapsGoogleMapsDispPoint']   = dirname( __FILE__ ) . 
'/Maps_GoogleMapsDispPoint.php';        
+       $wgAutoloadClasses['MapsGoogleMapsDispPoint']   = dirname( __FILE__ ) . 
'/Maps_GoogleMapsDispPoint.php';
+       $wgAutoloadClasses['MapsParamGMapType']                 = dirname( 
__FILE__ ) . '/Maps_ParamGMapType.php';
        
        MapsMappingServices::registerService( 'googlemaps2', 'MapsGoogleMaps' );
        $googleMaps = MapsMappingServices::getServiceInstance( 'googlemaps2' );

Modified: trunk/extensions/Maps/includes/services/GoogleMaps/Maps_GoogleMaps.php
===================================================================
--- trunk/extensions/Maps/includes/services/GoogleMaps/Maps_GoogleMaps.php      
2010-09-25 05:39:21 UTC (rev 73720)
+++ trunk/extensions/Maps/includes/services/GoogleMaps/Maps_GoogleMaps.php      
2010-09-25 05:47:35 UTC (rev 73721)
@@ -1,24 +1,12 @@
 <?php
 
 /**
- * File holding the MapsGoogleMaps class.
- *
- * @file Maps_GoogleMaps.php
- * @ingroup MapsGoogleMaps
- *
- * @author Jeroen De Dauw
- */
-
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 'Not an entry point.' );
-}
-
-/**
  * Class holding information and functionallity specific to Google Maps v2.
  * This infomation and features can be used by any mapping feature. 
  * 
  * @since 0.1
  * 
+ * @file Maps_GoogleMaps.php
  * @ingroup MapsGoogleMaps
  * 
  * @author Jeroen De Dauw

Added: trunk/extensions/Maps/includes/services/GoogleMaps/Maps_ParamGMapType.php
===================================================================
--- trunk/extensions/Maps/includes/services/GoogleMaps/Maps_ParamGMapType.php   
                        (rev 0)
+++ trunk/extensions/Maps/includes/services/GoogleMaps/Maps_ParamGMapType.php   
2010-09-25 05:47:35 UTC (rev 73721)
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * Parameter manipulation ensuring the value is a Google Maps v2 map type.
+ * 
+ * @since 0.7
+ * 
+ * @file Maps_ParamGMapType.php
+ * @ingroup Maps
+ * @ingroup ParameterManipulations
+ * @ingroup MapsGoogleMaps
+ * 
+ * @author Jeroen De Dauw
+ */
+class MapsParamGMapType extends ItemParameterManipulation {
+       
+       /**
+        * Constructor.
+        * 
+        * @since 0.7
+        */
+       public function __construct() {
+               parent::__construct();
+       }
+       
+       /**
+        * @see ItemParameterManipulation::doManipulation
+        * 
+        * @since 0.7
+        */     
+       public function doManipulation( &$value, array &$parameters ) {
+
+       }
+       
+}
\ No newline at end of file


Property changes on: 
trunk/extensions/Maps/includes/services/GoogleMaps/Maps_ParamGMapType.php
___________________________________________________________________
Added: svn:eol-style
   + native



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to