+ public function appendJSFile($jsdata) {
+ return $this->appendChild($this->ownerDocument->createElementJSFile($jsdata));
+ }
+ public function appendCOMElement($module, $attributes) {
+ return $this->appendChild($this->ownerDocument->createCOMElement($module, $attributes));
+ }
+}
+
+class ExtendedDocumentFragment extends DOMDocumentFragment {
+ // ExtendedDocumentFragment PHP class
+ // this extends the general PHP DOM Document Fragment class to simplify some usual constructs
+ //
+ // public function appendElement($name, [$value])
+ // appends a DOMDocument::createElement() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendElementXML($name, $xmldata)
+ // appends a DOMDocument::createElement() with the given name as a child of this fragment,
+ // with an ExtendedDocument::createXMLFragment() of the given XML data inside
+ // returns the new child
+ //
+ // public function appendLink($target, [$value])
+ // appends an ExtendedDocument::createElementLink() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendImage($src, [$alt_text])
+ // appends an ExtendedDocument::createElementImage() as a child of this document (see there for params)
+ // returns the new child
+ //
+ // public function appendForm($action, $method, $name, [$id])
+ // appends an ExtendedDocument::createElementForm() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendFormDiv($action, $method, $name, [$id])
+ // appends an ExtendedDocument::createElementForm() as a child of this fragment (see there for params)
+ // returns an HTML <div> that is a child of the new child
+ //
+ // public function appendInputHidden($name, $value)
+ // appends an ExtendedDocument::createElementInputHidden() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputText($name, $maxlength, $size, [$id], [$value])
+ // appends an ExtendedDocument::createElementInputText() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputNumber($name, $maxlength, $size, [$id], [$value])
+ // appends an ExtendedDocument::createElementInputNumber() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputEmail($name, $maxlength, $size, [$id], [$value])
+ // appends an ExtendedDocument::createElementInputEmail() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputPassword($name, $maxlength, $size, [$id], [$value])
+ // appends an ExtendedDocument::createElementInputPassword() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputRadio($name, $id, $value, $checked)
+ // appends an ExtendedDocument::createElementInputRadio() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputCheckbox($name, $id, $value, $checked)
+ // appends an ExtendedDocument::createElementInputCheckbox() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputFile($name, $id, $accept)
+ // appends an ExtendedDocument::createElementInputFile() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendInputSubmit($value)
+ // appends an ExtendedDocument::createElementInputSubmit() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendButton($value, $onclick = null)
+ // appends an ExtendedDocument::createElementButton() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendTextArea($name, $columns, $rows, [$id], [$value])
+ // appends an ExtendedDocument::createElementTextArea() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendElementSelect($name, [$id], [$options], [$default])
+ // appends an ExtendedDocument::createElementSelect() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendElementOption($key, $desc, [$selected])
+ // appends an ExtendedDocument::createElementOption() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendLabel($for_id, $value)
+ // appends an ExtendedDocument::createElementLabel() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendText($text)
+ // 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
+ //
+ // public function appendHTMLMarkup($htmldata)
+ // appends a representation of the HTML data as children of this fragment
+ // NO return value!
+ //
+ // public function appendXMLMarkup($xmldata)
+ // appends a representation of the XML data as children of this fragment
+ // NO return value!
+ //
+ // public function appendJSElement($jsdata)
+ // appends an ExtendedDocument::createElementJS() as a child of this fragment (see there for params)
+ // NO return value!
+ //
+ // public function appendCOMElement($module, $attributes)
+ // appends an ExtendedDocument::createCOMElement() as a child of this fragment (see there for params)
+ // returns the new child
+ //
+ // public function appendCOMElement($module, $attributes)
+ // appends an ExtendedDocument::createCOMElement() as a child of this fragment (see there for params)
+ // returns the new child
+
+ public function appendElement($name, $value = '') {
+ return $this->appendChild($this->ownerDocument->createElement($name, $value));
+ }
+ public function appendElementXML($name, $xmldata) {
+ $aelem = $this->appendChild($this->ownerDocument->createElement($name));
+ $aelem->appendXMLMarkup($xmldata);
+ return $aelem;
+ }
+ public function appendLink($target, $value = '') {
+ return $this->appendChild($this->ownerDocument->createElementLink($target, $value));
+ }
+ public function appendImage($src, $alt_text = '') {
+ return $this->appendChild($this->ownerDocument->createElementImage($src, $alt_text));
+ }
+ public function appendForm($action, $method, $name, $id = null) {
+ return $this->appendChild($this->ownerDocument->createElementForm($action, $method, $name, $id));
+ }
+ public function appendFormDiv($action, $method, $name, $id = null) {
+ $formelem = $this->appendChild($this->ownerDocument->createElementForm($action, $method, $name, $id));
+ return $formelem->appendElement('div');
+ }
+ public function appendInputHidden($name, $value) {
+ return $this->appendChild($this->ownerDocument->createElementInputHidden($name, $value));
+ }
+ public function appendInputText($name, $maxlength, $size, $id = null, $value = null) {
+ return $this->appendChild($this->ownerDocument->createElementInputText($name, $maxlength, $size, $id, $value));
+ }
+ public function appendInputNumber($name, $maxlength, $size, $id = null, $value = null) {
+ return $this->appendChild($this->ownerDocument->createElementInputNumber($name, $maxlength, $size, $id, $value));
+ }
+ public function appendInputEmail($name, $maxlength, $size, $id = null, $value = null) {
+ return $this->appendChild($this->ownerDocument->createElementInputEmail($name, $maxlength, $size, $id, $value));
+ }
+ public function appendInputPassword($name, $maxlength, $size, $id = null, $value = null) {
+ return $this->appendChild($this->ownerDocument->createElementInputPassword($name, $maxlength, $size, $id, $value));
+ }
+ public function appendInputRadio($name, $id, $value, $checked) {
+ return $this->appendChild($this->ownerDocument->createElementInputRadio($name, $id, $value, $checked));
+ }
+ public function appendInputCheckbox($name, $id, $value, $checked) {
+ return $this->appendChild($this->ownerDocument->createElementInputCheckbox($name, $id, $value, $checked));
+ }
+ public function appendInputFile($name, $id, $accept) {
+ return $this->appendChild($this->ownerDocument->createElementInputFile($name, $id, $accept));
+ }
+ public function appendInputSubmit($value) {
+ return $this->appendChild($this->ownerDocument->createElementInputSubmit($value));
+ }
+ public function appendButton($value, $onclick = null) {
+ return $this->appendChild($this->ownerDocument->createElementButton($value, $onclick));
+ }
+ public function appendTextArea($name, $columns, $rows, $id = null, $value = null) {
+ return $this->appendChild($this->ownerDocument->createElementTextArea($name, $columns, $rows, $id, $value));
+ }
+ public function appendElementSelect($name, $id = null, $options = array(), $default = null) {
+ return $this->appendChild($this->ownerDocument->createElementSelect($name, $id, $options, $default));
+ }
+ public function appendElementOption($key, $desc, $selected = false) {
+ return $this->appendChild($this->ownerDocument->createElementOption($key, $desc, $selected));
+ }
+ public function appendLabel($for_id, $value) {
+ return $this->appendChild($this->ownerDocument->createElementLabel($for_id, $value));
+ }
+ 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));
+ }
+ public function appendHTMLMarkup($htmldata) {
+ $this->ownerDocument->appendHTMLMarkup($htmldata, $this);
+ }
+ public function appendXMLMarkup($xmldata) {
+ $this->ownerDocument->appendXMLMarkup($xmldata, $this);
+ }
+ public function appendJSElement($jsdata) {
+ $this->appendChild($this->ownerDocument->createElementJS($jsdata));
+ }
+ public function appendJSFile($jsdata) {
+ return $this->appendChild($this->ownerDocument->createElementJSFile($jsdata));
+ }
+ public function appendCOMElement($module, $attributes) {
+ return $this->appendChild($this->ownerDocument->createCOMElement($module, $attributes));
+ }