| @@ 231-239 (lines=9) @@ | ||
| 228 | * |
|
| 229 | * @param AssetsInterface $asset |
|
| 230 | */ |
|
| 231 | public function appendAsset(AssetsInterface $asset) |
|
| 232 | { |
|
| 233 | /* Create asset DOMElement */ |
|
| 234 | if ($this->formatOutput) { |
|
| 235 | $com = $this->docObj->createComment("\n\t"); |
|
| 236 | $this->assets->appendChild($com); |
|
| 237 | } |
|
| 238 | $this->assets->appendChild($asset->DOMElement($this->docObj)); |
|
| 239 | } |
|
| 240 | ||
| 241 | /** |
|
| 242 | * Add entity |
|
| @@ 247-255 (lines=9) @@ | ||
| 244 | * @param Entity $entity |
|
| 245 | * @return void |
|
| 246 | */ |
|
| 247 | public function appendEntity(Entity $entity) |
|
| 248 | { |
|
| 249 | /* Create entity DOMElement */ |
|
| 250 | if ($this->formatOutput) { |
|
| 251 | $com = $this->docObj->createComment("\n"); |
|
| 252 | $this->scene->appendChild($com); |
|
| 253 | } |
|
| 254 | $this->scene->appendChild($entity->DOMElement($this->docObj)); |
|
| 255 | } |
|
| 256 | ||
| 257 | /** |
|
| 258 | * Get HTML of Scene only |
|