a.binder 8 лет назад
Родитель
Сommit
ee958ab5e0
1 измененных файлов с 16 добавлено и 3 удалено
  1. 16 3
      SE/se-lib/Route/WfsBiAudit.php

+ 16 - 3
SE/se-lib/Route/WfsBiAudit.php

@@ -5,7 +5,7 @@ Lib::loadClass('RouteBase');
 class Route_WfsBiAudit extends RouteBase {
 
 	const maxResolveDepth = 3;
-	private $dom, $path = [], $relations = [], $tablesUsed = [];
+	private $dom, $path = [], $relations = [], $tablesUsed = [], $BaseStruct[];
 
 	private static function output($output) {
 		header("Content-Type: application/xml");
@@ -61,8 +61,14 @@ public function objectStructView($item) {
 		
 		$return['table']=$item['name'];
 		$return['primaryKey']=$item['primaryKey'];
+		
+				$this->BaseStruct=$return;
+
 
-		$this->BaseStruct=$return;
+echo "BaseStruct 1
+";
+print_r($this->BaseStruct);
+		
 		
 		//return $return;
 	
@@ -175,8 +181,15 @@ public function objectStructView($item) {
 			$query = "select `ID` from `BI_audit_ALL` where `REMOTE_TABLE` = " . DB::getPDO()->quote($table) . " and `REMOTE_ID` = {$primaryKey}";
 			if (!($ID = DB::getPDO()->fetchValue($query))) {
 				
+				
 				$this->objectStructureAction('default_db/'.DB::getPDO()->quote($table).'/'.DB::getPDO()->quote($table));
-
+									
+									
+					echo "BaseStruct 2
+					";
+					print_r($this->BaseStruct);
+					die();
+				
 				$query = "select `ID` from ".DB::getPDO()->quote($table)." where ".$this->BaseStruct['primaryKey']." = {$primaryKey}";
 				if (!($ID = DB::getPDO()->fetchValue($query))) {
 					self::throwServiceException("Błąd danych z BaseStruct ");