|
@@ -169,16 +169,16 @@ public function objectStructView($item) {
|
|
|
$this->addChild($feature, "default_db__x3A__{$row['REMOTE_TABLE']}:ID", $row['REMOTE_ID']);
|
|
$this->addChild($feature, "default_db__x3A__{$row['REMOTE_TABLE']}:ID", $row['REMOTE_ID']);
|
|
|
if ($relation) $this->addChild($feature, "relation_from", $this->relationName($relation));
|
|
if ($relation) $this->addChild($feature, "relation_from", $this->relationName($relation));
|
|
|
//$query = "select `ID2` from `BI_audit_ALL_ref` where `ID1` = {$ID}";
|
|
//$query = "select `ID2` from `BI_audit_ALL_ref` where `ID1` = {$ID}";
|
|
|
- $where = $relation ? "and ({$relation} & `RELATION_ID`) != {$relation}" : "";
|
|
|
|
|
- $query = "select `ID2`, `RELATION_ID` from `BI_audit_ALL_ref` where `ID1` = {$ID} {$where}";
|
|
|
|
|
- $result = DB::getPDO()->fetchAll($query);
|
|
|
|
|
- foreach ($result as $row)
|
|
|
|
|
|
|
+ //$where = $relation ? "and ({$relation} & `RELATION_ID`) != {$relation}" : "";
|
|
|
|
|
+ //$query = "select `ID2`, `RELATION_ID` from `BI_audit_ALL_ref` where `ID1` = {$ID} {$where}";
|
|
|
|
|
+ //$result = DB::getPDO()->fetchAll($query);
|
|
|
|
|
+ //foreach ($result as $row)
|
|
|
// $this->findRelations($feature, $row['ID2'], $resolveDepth - 1, $row['RELATION_ID'],);
|
|
// $this->findRelations($feature, $row['ID2'], $resolveDepth - 1, $row['RELATION_ID'],);
|
|
|
findRelations_base($node, $ID, $resolveDepth, $relation = null, $this->BaseStruct,$BaseTableTo) ;
|
|
findRelations_base($node, $ID, $resolveDepth, $relation = null, $this->BaseStruct,$BaseTableTo) ;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
$xlink = $this->addChild($node, "default_db__x3A__{$BaseTableTo}:{$BaseTableTo}");
|
|
$xlink = $this->addChild($node, "default_db__x3A__{$BaseTableTo}:{$BaseTableTo}");
|
|
|
- $this->addAttribute($xlink, 'xlink:href', "https://biuro.biall-net.pl/wfs/default_db/{$BaseTableTo]}?BI_audit_ALL_ref_RELATIONS={$relation}#{$BaseTableTo}.{$row[$this->BaseStruct['primaryKey']]}");
|
|
|
|
|
|
|
+ $this->addAttribute($xlink, 'xlink:href', "https://biuro.biall-net.pl/wfs/default_db/".$BaseTableTo."?BI_audit_ALL_ref_RELATIONS={$BaseTableTo}#{$BaseTableTo}.{$row[$this->BaseStruct['primaryKey']]}");
|
|
|
}
|
|
}
|
|
|
array_pop($this->path);
|
|
array_pop($this->path);
|
|
|
|
|
|