| @@ 292-307 (lines=16) @@ | ||
| 289 | * @param \DOMDocument $aframe_dom |
|
| 290 | * @param \DOMElement $a_entity |
|
| 291 | */ |
|
| 292 | private function appendChildren(\DOMDocument &$aframe_dom, \DOMElement &$a_entity) |
|
| 293 | { |
|
| 294 | if ($this->childrenFactory instanceof EntityChildrenFactory) { |
|
| 295 | foreach ($this->childrenFactory->getChildern() as $child) { |
|
| 296 | if ($aframe_dom->formatOutput) { |
|
| 297 | $com = $aframe_dom->createComment("\n\t"); |
|
| 298 | $a_entity->appendChild($com); |
|
| 299 | } |
|
| 300 | $a_entity->appendChild($child->domElement($aframe_dom)); |
|
| 301 | if ($aframe_dom->formatOutput) { |
|
| 302 | $com = $aframe_dom->createComment(""); |
|
| 303 | $a_entity->appendChild($com); |
|
| 304 | } |
|
| 305 | } |
|
| 306 | } |
|
| 307 | } |
|
| 308 | ||
| 309 | /** |
|
| 310 | * Append childern to entities DOM element |
|
| @@ 315-328 (lines=14) @@ | ||
| 312 | * @param \DOMDocument $aframe_dom |
|
| 313 | * @param \DOMElement $a_entity |
|
| 314 | */ |
|
| 315 | private function appendAnimations(\DOMDocument &$aframe_dom, \DOMElement &$a_entity) |
|
| 316 | { |
|
| 317 | foreach ($this->animations as $animations) { |
|
| 318 | if ($aframe_dom->formatOutput) { |
|
| 319 | $com = $aframe_dom->createComment("\n\t"); |
|
| 320 | $a_entity->appendChild($com); |
|
| 321 | } |
|
| 322 | $a_entity->appendChild($animations->domElement($aframe_dom)); |
|
| 323 | if ($aframe_dom->formatOutput) { |
|
| 324 | $com = $aframe_dom->createComment(""); |
|
| 325 | $a_entity->appendChild($com); |
|
| 326 | } |
|
| 327 | } |
|
| 328 | } |
|
| 329 | } |
|
| 330 | ||