| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function addCDataChild($sName, $sValue) |
||
| 22 | { |
||
| 23 | $dom = new DOMDocument(); |
||
| 24 | $cDataNode = $dom->appendChild($dom->createElement($sName)); |
||
| 25 | $cDataNode->appendChild($dom->createCDATASection($this->removeSpecialChars($sValue))); |
||
| 26 | $oNodeOld = dom_import_simplexml($this); |
||
| 27 | $oNodeTarget = $oNodeOld->ownerDocument->importNode($cDataNode, true); |
||
| 28 | $oNodeOld->appendChild($oNodeTarget); |
||
| 29 | |||
| 30 | return simplexml_import_dom($oNodeTarget, 'SimpleXMLElement'); |
||
| 31 | } |
||
| 67 |