|
|
@@ -90,7 +90,12 @@ public function objectStructView($item) {
|
|
|
return $return;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ private function AddChildComment($node, $name, $value = null) {
|
|
|
+ $child = $this->dom->createComment($name, $value);
|
|
|
+ $node->appendChild($child);
|
|
|
+ return $child;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
private function addChild($node, $name, $value = null) {
|
|
|
@@ -312,17 +317,17 @@ public function objectStructView($item) {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- $this->addChild($dataNode, $fieldName, "<!-- TODO 'p5:links/{$p5LinkKey}': " . str_replace('&', '&', var_export($p5LinkValue, true)) . " -->");
|
|
|
+ $this->AddChildComment($dataNode, $fieldName, " TODO 'p5:links/{$p5LinkKey}': " . str_replace('&', '&', var_export($p5LinkValue, true)) . " ");
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- $this->addChild($dataNode, $fieldName, "<!-- TODO add info ref ({$refKey}): " . str_replace('&', '&', var_export($refValue, true)) . " -->");
|
|
|
+ $this->AddChildComment($dataNode, $fieldName, " TODO add info ref ({$refKey}): " . str_replace('&', '&', var_export($refValue, true)) . " ");
|
|
|
}
|
|
|
}
|
|
|
} else if (NULL === $value) {
|
|
|
$this->addChild($dataNode, "{$nsPrefix}:{$fieldName}"); // xs:nil ?
|
|
|
} else {
|
|
|
- $this->addChild($dataNode, $fieldName, "<!-- TODO: " . var_export($value, true) . " -->");
|
|
|
+ $this->AddChildComment($dataNode, $fieldName, " TODO: " . var_export($value, true) . " ");
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception $e) {
|