X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=classes%2Fdocument.php-class;h=f215f7bc36a275dbc54b320a6f0e7d60e8ceb508;hb=d7403a92eac6ca945c5d163d860c0753be834f0a;hp=d4d4e4782012baf86dd98b3ef6b3d6edbd82b97d;hpb=b3cc0fef0bbd24b60622ade24b3e1e6781dd6834;p=php-utility-classes.git
diff --git a/classes/document.php-class b/classes/document.php-class
index d4d4e47..f215f7b 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
@@ -49,16 +53,40 @@ class ExtendedDocument extends DOMDocument {
// appends an ExtendedDocument::createElementInputText() as a child of this document (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 document (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 document (see there for params)
// returns the new child
//
+ // public function appendInputRange($name, $id, $min, $max, [$step], [$value])
+ // appends an ExtendedDocument::createElementInputRange() 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
+ //
// public function appendInputEmail($name, $maxlength, $size, [$id], [$value])
// appends an ExtendedDocument::createElementInputEmail() as a child of this document (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 document (see there for params)
+ // public function appendInputTel($name, $maxlength, $size, [$id], [$value])
+ // appends an ExtendedDocument::createElementInputTel() as a child of this document (see there for params)
+ // returns the new child
+ //
+ // public function appendInputDate($name, [$id], [$min], [$max], [$value])
+ // appends an ExtendedDocument::createElementInputDate() as a child of this document (see there for params)
+ // returns the new child
+ //
+ // public function appendInputTime($name, [$id], [$min], [$max], [$value])
+ // appends an ExtendedDocument::createElementInputTime() 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
//
// public function appendInputRadio($name, $id, $value, $checked)
@@ -113,6 +141,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!
@@ -121,9 +154,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)
@@ -146,16 +183,40 @@ class ExtendedDocument extends DOMDocument {
// returns an ExtendedElement that is an HTML of type 'text' with the given name, maxlength, size,
// and optionally id and value
//
+ // public function createElementInputPassword($name, $maxlength, $size, [$id], [$value])
+ // returns an ExtendedElement that is an HTML of type 'password' with the given name, maxlength, size,
+ // and optionally id and value
+ //
// public function createElementInputNumber($name, $maxlength, $size, [$id], [$value])
// returns an ExtendedElement that is an HTML of type 'number' with the given name, maxlength, size,
// and optionally id and value
//
+ // public function createElementInputRange($name, $id, $min, $max, [$step], [$value])
+ // returns an ExtendedElement that is an HTML of type 'range' with the given name, id, min, max,
+ // and optionally step and value
+ //
+ // public function createElementInputUrl($name, $maxlength, $size, [$id], [$value])
+ // returns an ExtendedElement that is an HTML of type 'url' 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
//
- // public function createElementInputPassword($name, $maxlength, $size, [$id], [$value])
- // returns an ExtendedElement that is an HTML of type 'password' with the given name, maxlength, size,
+ // public function createElementInputTel($name, $maxlength, $size, [$id], [$value])
+ // returns an ExtendedElement that is an HTML of type 'tel' with the given name, maxlength, size,
+ // and optionally id and value
+ //
+ // public function createElementInputDate($name, [$id], [$min], [$max], [$value])
+ // returns an ExtendedElement that is an HTML of type 'date' with the given name,
+ // and optionally id, min, max, and value
+ //
+ // public function createElementInputTime($name, [$id], [$min], [$max], [$value])
+ // returns an ExtendedElement that is an HTML of type 'time' 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
//
// public function createElementInputRadio($name, $id, $value, $checked)
@@ -190,6 +251,9 @@ class ExtendedDocument extends DOMDocument {
// public function createElementLabel($for_id, $value)
// returns an ExtendedElement that is an HTML