* * ***** END LICENSE BLOCK ***** */ class ExtendedDocument extends DOMDocument { // ExtendedDocument PHP class // this extends the general PHP DOM Document class to simplify some usual constructs // // function __construct([$version], [$encoding]) // CONSTRUCTOR // construct a new DOM Document that uses our element definitions // // function appendElement($name, [$value]) // appends a DOMDocument::createElement() as a child of this document (see there for params) // returns the new child // // function appendElementXML($name, $xmldata) // appends a DOMDocument::createElement() with the given name as a child of this document, // with an ExtendedDocument::createXMLFragment() of the given XML data inside // returns the new child // // function appendLink($target, [$value]) // appends an ExtendedDocument::createElementLink() as a child of this document (see there for params) // returns the new child // // function appendText($text) // appends a DOMDocument::createTextNode() as a child of this document (see there for params) // returns the new child // // function appendRawMarkup($markupdata) // appends an ExtendedDocument::createElementRawMarkup() as a child of this document (see there for params) // NO return value! // // function appendJSElement($jsdata) // appends an ExtendedDocument::createElementJS() as a child of this document (see there for params) // NO return value! // // function createXMLFragment($xmldata) // returns a DOMDocumentFragment containing the DOM of the given XML data // // function createElementLink($target, [$value]) // returns an ExtendedElement that is an HTML with the given target (href) and (optional) value // // function createElementRawMarkup($markupdata) // returns a DOMNode containing a representation of the given raw markup data // // function createElementJS($jsdata) // returns an ExtendedElement that is an HTML