| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function write($rootElementName, $value, $contextUri = null) { |
||
| 29 | $me = $this; |
||
| 30 | $w = $this->getWriter(); |
||
| 31 | $w->openMemory(); |
||
| 32 | $w->contextUri = $contextUri; |
||
| 33 | $w->setIndent(true); |
||
| 34 | $w->setIndentString($me->xmlIndentString); |
||
| 35 | $w->startDocument($me->xmlVersion, $me->xmlEncoding, $me->xmlStandalone); |
||
| 36 | $w->writeElement($rootElementName, $value); |
||
| 37 | return $w->outputMemory(); |
||
| 38 | } |
||
| 41 |