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

Revision: 83577
Author:   jeroendedauw
Date:     2011-03-09 09:45:47 +0000 (Wed, 09 Mar 2011)
Log Message:
-----------
doc updates

Modified Paths:
--------------
    branches/SemanticMaps0.8/includes/queryprinters/SM_MapPrinter.php
    branches/SemanticMaps0.8/includes/queryprinters/SM_Mapper.php
    branches/SemanticMaps0.8/includes/queryprinters/SM_QueryPrinters.php

Modified: branches/SemanticMaps0.8/includes/queryprinters/SM_MapPrinter.php
===================================================================
--- branches/SemanticMaps0.8/includes/queryprinters/SM_MapPrinter.php   
2011-03-09 09:32:46 UTC (rev 83576)
+++ branches/SemanticMaps0.8/includes/queryprinters/SM_MapPrinter.php   
2011-03-09 09:45:47 UTC (rev 83577)
@@ -1,12 +1,14 @@
 <?php
 
 /**
- * Abstract class that provides the common functionality for all map query 
printers.
+ * Query printer for maps. Is invoked via SMMapper.
+ * Can be overriden per service to have custom output.
  *
  * @file SM_MapPrinter.php
  * @ingroup SemanticMaps
  *
- * @author Jeroen De Dauw
+ * @licence GNU GPL v3
+ * @author Jeroen De Dauw < jeroended...@gmail.com >
  */
 class SMMapPrinter extends SMWResultPrinter {
        

Modified: branches/SemanticMaps0.8/includes/queryprinters/SM_Mapper.php
===================================================================
--- branches/SemanticMaps0.8/includes/queryprinters/SM_Mapper.php       
2011-03-09 09:32:46 UTC (rev 83576)
+++ branches/SemanticMaps0.8/includes/queryprinters/SM_Mapper.php       
2011-03-09 09:45:47 UTC (rev 83577)
@@ -1,12 +1,16 @@
 <?php
 
 /**
- * General map query printer class.
+ * Default class to assign as handler for map result formats.
+ * The reason SMMapPrinter is not used for this directly is that
+ * this would not allow having a deriving class of SMMapPrinter 
+ * for a particular mapping service.
  *
  * @file SM_Mapper.php
  * @ingroup SemanticMaps
  *
- * @author Jeroen De Dauw
+ * @licence GNU GPL v3
+ * @author Jeroen De Dauw < jeroended...@gmail.com >
  */
 final class SMMapper {
        

Modified: branches/SemanticMaps0.8/includes/queryprinters/SM_QueryPrinters.php
===================================================================
--- branches/SemanticMaps0.8/includes/queryprinters/SM_QueryPrinters.php        
2011-03-09 09:32:46 UTC (rev 83576)
+++ branches/SemanticMaps0.8/includes/queryprinters/SM_QueryPrinters.php        
2011-03-09 09:45:47 UTC (rev 83577)
@@ -92,9 +92,9 @@
                if ( isset( $smwgResultFormats ) ) {
                        $smwgResultFormats[$format] = $class;
                }
-               else {
+               else { // BC with some old SMW version
                        SMWQueryProcessor::$formats[$format] = $class;
                }
        }
        
-}
\ No newline at end of file
+}


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to