class LingotekXMLElement in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekXMLElement.php \LingotekXMLElement
An extension of SimpleXMLElement to add CDATA
Hierarchy
- class \LingotekXMLElement extends \SimpleXMLElement
Expanded class hierarchy of LingotekXMLElement
File
- lib/
Drupal/ lingotek/ LingotekXMLElement.php, line 11 - Defines LingotekXMLElement
View source
class LingotekXMLElement extends SimpleXMLElement {
public function addCData($text) {
$xml = dom_import_simplexml($this);
$doc = $xml->ownerDocument;
$xml
->appendChild($doc
->createCDATASection($text));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LingotekXMLElement:: |
public | function |