X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=classes%2Fdocument.php-class;h=c48415fd22e66aa26f09143a33c6e351d1639891;hb=refs%2Fheads%2Fmaster;hp=64acdbcbb798509278f96ad8c288480f22822e94;hpb=f925e4a1b0d0fac984c82d1aa4fe3480bf207f5c;p=php-utility-classes.git diff --git a/classes/document.php-class b/classes/document.php-class index 64acdbc..c48415f 100755 --- a/classes/document.php-class +++ b/classes/document.php-class @@ -16,6 +16,10 @@ class ExtendedDocument extends DOMDocument { // If a $doc is handed over (an ExtendedDocument or a derived class), load the content into that document. // returns an associative array with the following elements: 'html', 'head', 'title', 'body' // + // public function loadHTML5($source) { + // A version of loadHTML() - see DOMDocument documentation - that is made for loading HTML5 and not emitting warnings/errors for unknown elements. + // returns true on success, false otherwise, just like loadHTML5. + // // public function appendElement($name, [$value]) // appends a DOMDocument::createElement() as a child of this document (see there for params) // returns the new child @@ -61,6 +65,10 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementInputRange() as a child of this document (see there for params) // returns the new child // + // public function appendInputSearch($name, $maxlength, $size, [$id], [$value]) + // appends an ExtendedDocument::createElementInputSearch() as a child of this document (see there for params) + // returns the new child + // // public function appendInputUrl($name, $maxlength, $size, [$id], [$value]) // appends an ExtendedDocument::createElementInputUrl() as a child of this document (see there for params) // returns the new child @@ -81,6 +89,10 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementInputTime() as a child of this document (see there for params) // returns the new child // + // public function appendInputDateTime($name, [$id], [$min], [$max], [$value]) + // appends an ExtendedDocument::createElementInputDateTime() as a child of this document (see there for params) + // returns the new child + // // public function appendInputColor($name, [$id], [$value]) // appends an ExtendedDocument::createElementInputColor() as a child of this document (see there for params) // returns the new child @@ -121,6 +133,10 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementLabel() as a child of this document (see there for params) // returns the new child // + // public function appendElementDatalist([$id], [$options]) + // appends an ExtendedDocument::createElementDatalist() as a child of this document (see there for params) + // returns the new child + // // public function appendText($text) // appends a DOMDocument::createTextNode() as a child of this document (see there for params) // returns the new child @@ -137,6 +153,11 @@ class ExtendedDocument extends DOMDocument { // appends a DOMDocument::createComment() as a child of this document (see there for params) // returns the new child // + // public function appendClonedElement($dom_element, [$deep]) + // appends a clone of the given DOMElement as a child of this document + // the boolean $deep specifies if the children are cloned as well (defaults to TRUE) + // returns the new child + // // public function appendHTMLMarkup($htmldata, [$parentNode]) // appends a representation of the HTML data as children of the given parent node, by default this document // NO return value! @@ -145,9 +166,13 @@ class ExtendedDocument extends DOMDocument { // appends a representation of the XML data as children of the given parent node, by default this document // NO return value! // + // public function appendStyleElement($styledata) + // appends an ExtendedDocument::createElementStyle() as a child of this document (see there for params) + // returns the new child + // // public function appendJSElement($jsdata) // appends an ExtendedDocument::createElementJS() as a child of this document (see there for params) - // NO return value! + // returns the new child // // public function appendJSFile($jsURL, [$defer], [$async]) // appends an ExtendedDocument::createElementJSFile() as a child of this document (see there for params) @@ -160,8 +185,7 @@ class ExtendedDocument extends DOMDocument { // returns an ExtendedElement that is an HTML with the given src and alt attributes (set to '' by default) // // public function createElementForm($action, $method, $name) - // returns an ExtendedElement that is an HTML
that is a child of an HTML
- // with the given action, method, and name + // returns an ExtendedElement that is an HTML with the given action, method, and name // // public function createElementInputHidden($name, $value) // returns an ExtendedElement that is an HTML of type 'hidden' with the given name and value @@ -186,6 +210,10 @@ class ExtendedDocument extends DOMDocument { // returns an ExtendedElement that is an HTML of type 'url' with the given name, maxlength, size, // and optionally id and value // + // public function createElementInputSearch($name, $maxlength, $size, [$id], [$value]) + // returns an ExtendedElement that is an HTML of type 'search' with the given name, maxlength, size, + // and optionally id and value + // // public function createElementInputEmail($name, $maxlength, $size, [$id], [$value]) // returns an ExtendedElement that is an HTML of type 'email' with the given name, maxlength, size, // and optionally id and value @@ -202,6 +230,10 @@ class ExtendedDocument extends DOMDocument { // returns an ExtendedElement that is an HTML of type 'time' with the given name, // and optionally id, min, max, and value // + // public function createElementInputDateTime($name, [$id], [$min], [$max], [$value]) + // returns an ExtendedElement that is an HTML of type 'datetime-local' with the given name, + // and optionally id, min, max, and value + // // public function createElementInputColor($name, [$id], [$value]) // returns an ExtendedElement that is an HTML of type 'color' with the given name, // and optionally id and value @@ -238,6 +270,12 @@ class ExtendedDocument extends DOMDocument { // public function createElementLabel($for_id, $value) // returns an ExtendedElement that is an HTML