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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Sep 11 05:21:45 EDT 2009


Author: uli
Date: 2009-09-11 05:21:45 -0400 (Fri, 11 Sep 2009)
New Revision: 4615

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-10 15:56:11 UTC (rev 4614)
+++ branches/ur_dev/install/class_dia.php	2009-09-11 09:21:45 UTC (rev 4615)
@@ -21,9 +21,26 @@
 	}
 	
 	private function getTableNodes(){
-		return $this->xp->query("//dia:layer[@name='Background']/dia:object[@type='UML - Class']");
+		$query = "//dia:layer[@name='Background']/dia:object[@type='UML - Class']";
+		return $this->xp->query($query);
 	}
 	
+	private function getConstraintIds(){
+		$arrayIds = array();
+		$query = "//dia:layer[@name='Background']/dia:object[@type='UML - Association']";
+		$objects = $this->xp->query($query);
+		fwrite(STDOUT, serialize($objects));
+		foreach($objects as $object){
+			array_push($arrayIds,$object->getAttribute('id'));
+		}
+		return $arrayIds;
+	}
+	
+	public function getConstraints(){
+		$constraintIds = $this->getConstraintIds();
+		
+	}
+	
 	private function getTableNodeById($id){
 		$tables = $this->getTableNodes();
 		foreach($tables as $table){
@@ -131,7 +148,7 @@
 	
 	
 	private function removeHash($string){
-		//this could be a problem if the columnname contains a #
+		//this could be a problem if the columnname contains a '#'
 		return str_replace("#","",$string);
 		
 	}



More information about the Mapbender_commits mailing list