[Mapbender-commits] r6940 - in trunk/mapbender/http: classes javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Sep 24 04:05:33 EDT 2010


Author: christoph
Date: 2010-09-24 08:05:33 +0000 (Fri, 24 Sep 2010)
New Revision: 6940

Modified:
   trunk/mapbender/http/classes/class_wms_1_1_1_factory.php
   trunk/mapbender/http/javascripts/initWmcObj.php
Log:
debugging

Modified: trunk/mapbender/http/classes/class_wms_1_1_1_factory.php
===================================================================
--- trunk/mapbender/http/classes/class_wms_1_1_1_factory.php	2010-09-24 07:56:42 UTC (rev 6939)
+++ trunk/mapbender/http/classes/class_wms_1_1_1_factory.php	2010-09-24 08:05:33 UTC (rev 6940)
@@ -85,6 +85,10 @@
 		// 2. delete layers not for keeping
 		//
 		$i = 0;
+new mb_exception(";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;");
+new mb_exception(serialize($keep));
+new mb_exception("======================================================");
+new mb_exception(serialize($myWms->objLayer));
 		while ($i < count($myWms->objLayer)) {
 			$l = $myWms->objLayer[$i];
 			if (in_array($l->layer_uid, $keep)) {
@@ -94,6 +98,9 @@
 			// delete layer
 			array_splice($myWms->objLayer, $i, 1);
 		}
+new mb_exception(".......................................................");
+new mb_exception(serialize($myWms->objLayer));
+new mb_exception(":::::::::::::::::::::::::::::::::::::::::::::::::::::::");
 		return $myWms;
 	}
 }

Modified: trunk/mapbender/http/javascripts/initWmcObj.php
===================================================================
--- trunk/mapbender/http/javascripts/initWmcObj.php	2010-09-24 07:56:42 UTC (rev 6939)
+++ trunk/mapbender/http/javascripts/initWmcObj.php	2010-09-24 08:05:33 UTC (rev 6940)
@@ -175,8 +175,6 @@
 		}
 		else {
 			$wms = $wmsFactory->createLayerFromDb($input["id"]);
-			new mb_exception("::::::::::::::::::::::::::::::::::::::::::::::::::::::");
-			new mb_exception($wms);
 		}
 		$options = array();
 		if ($input["visible"]) {
@@ -208,15 +206,10 @@
 
 //workaround to have a fully merged WMC for loading
 
-new mb_exception("......................................................");
-new mb_exception(serialize($wmc));
 $xml = $wmc->toXml();
 
 $wmc = new wmc();
 $wmc->createFromXml($xml);
-new mb_exception(";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;");
-new mb_exception(serialize($wmc));
-new mb_exception("======================================================");
 
 $output = $wmc->wmsToJavaScript();
 



More information about the Mapbender_commits mailing list