* * ***** 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 // // private $xmheader // the default XML header // // private $xhtmldtype // the XHTML doctype to use by default // // 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 appendFormDiv($action, $method, $name) // appends an ExtendedDocument::createElementForm() as a child of this document (see there for params) // returns an HTML