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

Revision: 89065
Author:   jeroendedauw
Date:     2011-05-28 19:26:47 +0000 (Sat, 28 May 2011)
Log Message:
-----------
added entry point at normal location and replaced some includes with autloads 
and removed ?>s

Modified Paths:
--------------
    trunk/extensions/SemanticGraph/includes/SemanticGraph2.php
    trunk/extensions/SemanticGraph/includes/SemanticGraphBuilders.php
    trunk/extensions/SemanticGraph/includes/SemanticGraphFiles.php
    trunk/extensions/SemanticGraph/includes/SemanticGraphHelperFunctions.php
    trunk/extensions/SemanticGraph/includes/SemanticGraphQuery.php
    trunk/extensions/SemanticGraph/includes/SemanticGraphRenderer.php
    trunk/extensions/SemanticGraph/includes/SemanticGraphSettings.php

Added Paths:
-----------
    trunk/extensions/SemanticGraph/SemanticGraph.php

Added: trunk/extensions/SemanticGraph/SemanticGraph.php
===================================================================
--- trunk/extensions/SemanticGraph/SemanticGraph.php                            
(rev 0)
+++ trunk/extensions/SemanticGraph/SemanticGraph.php    2011-05-28 19:26:47 UTC 
(rev 89065)
@@ -0,0 +1,3 @@
+<?php
+
+require_once 'includes/SemanticGraph2.php';
\ No newline at end of file


Property changes on: trunk/extensions/SemanticGraph/SemanticGraph.php
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: trunk/extensions/SemanticGraph/includes/SemanticGraph2.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraph2.php  2011-05-28 
19:11:40 UTC (rev 89064)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraph2.php  2011-05-28 
19:26:47 UTC (rev 89065)
@@ -30,17 +30,20 @@
 // Extension credits that will show up on Special:Version    
 $wgExtensionCredits['parserhook'][] = array(
         'name'         => 'SemanticGraph',
-        'version'      => '0.8.6',
+        'version'      => '0.9 alpha',
         'author'       => 'Rob Challen', 
         'url'          => 'http://semanticgraph.sourceforge.net/',
         'description'  => 'This extension depends on graphviz, freemind applet 
and hypergraph applet'
 );
 
-include_once('SemanticGraphSettings.php');
-include_once('SemanticGraphFiles.php');
-include_once('SemanticGraphRenderer.php');
-include_once('SemanticGraphBuilders.php');
-include_once('SemanticGraphQuery.php');
+$wgAutoloadClasses['SemanticGraphSettings']                                    
= dirname( __FILE__ ) . '/SemanticGraphSettings.php';
+$wgAutoloadClasses['graphfile']                                                
                = dirname( __FILE__ ) . '/SemanticGraphFiles.php';
+$wgAutoloadClasses['renderer']                                                 
        = dirname( __FILE__ ) . '/SemanticGraphRenderer.php';
+$wgAutoloadClasses['networkgraph']                                             
        = dirname( __FILE__ ) . '/SemanticGraphBuilders.php';
+$wgAutoloadClasses['localmap']                                                 
        = dirname( __FILE__ ) . '/SemanticGraphBuilders.php';
+$wgAutoloadClasses['freemindmap']                                              
        = dirname( __FILE__ ) . '/SemanticGraphBuilders.php';
+$wgAutoloadClasses['GraphQuery']                                               
        = dirname( __FILE__ ) . '/SemanticGraphQuery.php';
+
 include_once('SemanticGraphHelperFunctions.php');
 $wgSemanticGraphSettings = new SemanticGraphSettings();
 
@@ -182,4 +185,3 @@
        $input = $file->renderGraphFromMM($mmtext, $initargs['width'], 
$initargs['height']);
        return $parser->insertStripItem( $input, $parser->mStripState );
 }
-?>

Modified: trunk/extensions/SemanticGraph/includes/SemanticGraphBuilders.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraphBuilders.php   
2011-05-28 19:11:40 UTC (rev 89064)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraphBuilders.php   
2011-05-28 19:26:47 UTC (rev 89065)
@@ -372,4 +372,3 @@
                return $this->output;
        }
 }
-?>
\ No newline at end of file

Modified: trunk/extensions/SemanticGraph/includes/SemanticGraphFiles.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraphFiles.php      
2011-05-28 19:11:40 UTC (rev 89064)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraphFiles.php      
2011-05-28 19:26:47 UTC (rev 89065)
@@ -137,5 +137,3 @@
        return $iframe; 
        }
 }
-
-?>
\ No newline at end of file

Modified: 
trunk/extensions/SemanticGraph/includes/SemanticGraphHelperFunctions.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraphHelperFunctions.php    
2011-05-28 19:11:40 UTC (rev 89064)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraphHelperFunctions.php    
2011-05-28 19:26:47 UTC (rev 89065)
@@ -311,5 +311,3 @@
        //return $js;
        return $svgtxt;
 }
-
-?>
\ No newline at end of file

Modified: trunk/extensions/SemanticGraph/includes/SemanticGraphQuery.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraphQuery.php      
2011-05-28 19:11:40 UTC (rev 89064)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraphQuery.php      
2011-05-28 19:26:47 UTC (rev 89065)
@@ -159,5 +159,3 @@
        }
 
 }
-
-?>

Modified: trunk/extensions/SemanticGraph/includes/SemanticGraphRenderer.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraphRenderer.php   
2011-05-28 19:11:40 UTC (rev 89064)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraphRenderer.php   
2011-05-28 19:26:47 UTC (rev 89065)
@@ -91,4 +91,3 @@
                return $r;
         }
 }
-?>
\ No newline at end of file

Modified: trunk/extensions/SemanticGraph/includes/SemanticGraphSettings.php
===================================================================
--- trunk/extensions/SemanticGraph/includes/SemanticGraphSettings.php   
2011-05-28 19:11:40 UTC (rev 89064)
+++ trunk/extensions/SemanticGraph/includes/SemanticGraphSettings.php   
2011-05-28 19:26:47 UTC (rev 89065)
@@ -432,6 +432,3 @@
                return $argv;
        }
 }
-
-
-?>
\ No newline at end of file


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

Reply via email to