Sfoglia il codice sorgente

clean up code in WFS Data Server

Piotr Labudda 9 anni fa
parent
commit
e61dbb19fa

+ 2 - 14
SE/se-lib/Api/WfsDataServer.php

@@ -25,21 +25,9 @@ class Api_WfsDataServer extends Api_WfsServerBase {
 		}
 
 		$rootTagName = V::get('tag', '', $tags[0]);
-		if ('Transaction' == $rootTagName) {
-			return $this->_parseTransactionXmlStruct($reqContent, $tags);
-		}
-
-		throw new Api_WfsException("TODO ... L." . __LINE__, 501);
-
-		$xml = new SimpleXMLElement($reqContent);
-		$namespaces = $xml->getNameSpaces(true);
+		if ('Transaction' == $rootTagName) return $this->_parseTransactionXmlStruct($reqContent, $tags);
 
-		if ('Transaction' == $xml->getName()) {
-			$this->_parseTransactionXml($xml);
-		}
-		else {
-			throw new Api_WfsException("Not Implemented " . htmlspecialchars($xml->getName()), 501);
-		}
+		throw new Api_WfsException("Not implemented '{$rootTagName}' #L." . __LINE__, 501);
 	}
 
 	public function getFeatureAction() {

+ 0 - 0
SE/se-lib/FileStorageAcl.php → SE/se-lib/Schema/FileStorageAcl.php


+ 0 - 0
SE/se-lib/KorespondencjaStorageAcl.php → SE/se-lib/Schema/KorespondencjaStorageAcl.php


+ 0 - 0
SE/se-lib/TestPermsStorageAcl.php → SE/se-lib/Schema/TestPermsStorageAcl.php