X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=include%2Fcbsm%2Futil%2Fdocument.php-class;fp=include%2Fcbsm%2Futil%2Fdocument.php-class;h=41e817a4d96b678740e1fa0ca82591a886af529c;hb=6638efd5690cd46471a3e01c164e572956a34aa3;hp=32d4e3ee23a715d281353d11f0b1c04024563e07;hpb=ea32f7e5a537d82c4c39e7446d00dc2ce458b526;p=php-utility-classes.git diff --git a/include/cbsm/util/document.php-class b/include/cbsm/util/document.php-class index 32d4e3e..41e817a 100755 --- a/include/cbsm/util/document.php-class +++ b/include/cbsm/util/document.php-class @@ -116,6 +116,10 @@ class ExtendedDocument extends DOMDocument { // appends a DOMDocument::createTextNode() as a child of this document (see there for params) // returns the new child // + // public function appendEntity($name) + // appends a DOMDocument::createEntityReference() as a child of this document (see there for params) + // returns the new child + // // public function appendComment($comment_data) // appends a DOMDocument::createComment() as a child of this document (see there for params) // returns the new child @@ -302,6 +306,9 @@ class ExtendedDocument extends DOMDocument { public function appendText($text) { return $this->appendChild($this->createTextNode($text)); } + public function appendEntity($name) { + return $this->appendChild($this->createEntityReference($name)); + } public function appendComment($comment_data) { return $this->appendChild($this->createComment($comment_data)); } @@ -606,6 +613,10 @@ class ExtendedElement extends DOMElement { // appends a DOMDocument::createTextNode() as a child of this element (see there for params) // returns the new child // + // public function appendEntity($name) + // appends a DOMDocument::createEntityReference() as a child of this element (see there for params) + // returns the new child + // // public function appendComment($comment_data) // appends a DOMDocument::createComment() as a child of this element (see there for params) // returns the new child @@ -696,6 +707,9 @@ class ExtendedElement extends DOMElement { public function appendText($text) { return $this->appendChild($this->ownerDocument->createTextNode($text)); } + public function appendEntity($name) { + return $this->appendChild($this->ownerDocument->createEntityReference($name)); + } public function appendComment($comment_data) { return $this->appendChild($this->ownerDocument->createComment($comment_data)); } @@ -805,6 +819,10 @@ class ExtendedDocumentFragment extends DOMDocumentFragment { // appends a DOMDocument::createTextNode() as a child of this fragment (see there for params) // returns the new child // + // public function appendEntity($name) + // appends a DOMDocument::createEntityReference() as a child of this fragment (see there for params) + // returns the new child + // // public function appendComment($comment_data) // appends a DOMDocument::createComment() as a child of this fragment (see there for params) // returns the new child @@ -895,6 +913,9 @@ class ExtendedDocumentFragment extends DOMDocumentFragment { public function appendText($text) { return $this->appendChild($this->ownerDocument->createTextNode($text)); } + public function appendEntity($name) { + return $this->appendChild($this->ownerDocument->createEntityReference($name)); + } public function appendComment($comment_data) { return $this->appendChild($this->ownerDocument->createComment($comment_data)); }