[Mapbender-commits] r4606 - branches/ur_dev/install

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 9 11:11:22 EDT 2009


Author: uli
Date: 2009-09-09 11:11:22 -0400 (Wed, 09 Sep 2009)
New Revision: 4606

Modified:
   branches/ur_dev/install/class_dia.php
Log:


Modified: branches/ur_dev/install/class_dia.php
===================================================================
--- branches/ur_dev/install/class_dia.php	2009-09-09 13:42:06 UTC (rev 4605)
+++ branches/ur_dev/install/class_dia.php	2009-09-09 15:11:22 UTC (rev 4606)
@@ -2,6 +2,8 @@
 class Dia{
 	
 	private $xml;
+	private $domDoc;
+	private $xp;
 	
 	public function __construct () {
 	}
@@ -9,13 +11,13 @@
 	public function load($filename){
 		
 		fwrite(STDOUT, "Loading: ".$filename."\n");
-		$domDoc = new DOMDocument();
-		$domDoc->preserveWhiteSpace = false;
-		$domDoc->load($filename);
-		$xp = new DOMXPath($domDoc);
-		// register composites
-		//$tables = $xmlDoc->xpath("//dia:layer[@name='Background']/dia:object[@type='UML - Class']");
-		$xp->registerNamespace('dia', 'http://www.lysator.liu.se/~alla/dia/');
+		$this->domDoc = new DOMDocument();
+		$this->domDoc->preserveWhiteSpace = false;
+		$this->domDoc->load($filename);
+		$this->xp = new DOMXPath($this->domDoc);
+		
+		$this->xp->registerNamespace('dia', 'http://www.lysator.liu.se/~alla/dia/');
+		return true;
 		$tables = $xp->query("//dia:layer[@name='Background']/dia:object[@type='UML - Class']");
 		fwrite(STDOUT, "Found ".$tables->length." composites\n");
 		$i = 0;
@@ -56,9 +58,22 @@
 		}
 	}
 	
-	public function getTables($tableNode){
+	public function getTables(){
 		
+		$tables = $xp->query("//dia:layer[@name='Background']/dia:object[@type='UML - Class']");
+		foreach ($tables as $table){
+			
+		}
 	}
+	public function getColumns($tablename){
+		
+	}
+	public function getColumnType($tablename, $columnname){
+		
+	}
+	public function getColumnValue($tablename, $columnname){
+		
+	}
 }
 
 ?>
\ No newline at end of file



More information about the Mapbender_commits mailing list