X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=classes%2Fdocument.php-class;h=d4d4e4782012baf86dd98b3ef6b3d6edbd82b97d;hp=41e817a4d96b678740e1fa0ca82591a886af529c;hb=b3cc0fef0bbd24b60622ade24b3e1e6781dd6834;hpb=7b9ebce7d25e4eaa557e8a64f8b1ed15aad1a9bb diff --git a/classes/document.php-class b/classes/document.php-class index 41e817a..d4d4e47 100755 --- a/classes/document.php-class +++ b/classes/document.php-class @@ -1,23 +1,7 @@ - * - * ***** END LICENSE BLOCK ***** */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ class ExtendedDocument extends DOMDocument { // ExtendedDocument PHP class @@ -27,8 +11,9 @@ class ExtendedDocument extends DOMDocument { // CONSTRUCTOR // construct a new DOM Document that uses our element definitions // - // static function initHTML5() + // static function initHTML5([$doc]) // initialize as an HTML5 document and return references to its basic elements. + // 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 appendElement($name, [$value]) @@ -40,7 +25,7 @@ class ExtendedDocument extends DOMDocument { // with an ExtendedDocument::createXMLFragment() of the given XML data inside // returns the new child // - // public function appendLink($target, [$value]) + // public function appendLink($target, [$value], [$title]) // appends an ExtendedDocument::createElementLink() as a child of this document (see there for params) // returns the new child // @@ -100,7 +85,7 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementTextArea() as a child of this document (see there for params) // returns the new child // - // public function appendElementSelect($name, [$id], [$options], [$default]) + // public function appendElementSelect($name, [$id], [$options], [$default], [$strictmatch]) // appends an ExtendedDocument::createElementSelect() as a child of this document (see there for params) // returns the new child // @@ -116,6 +101,10 @@ class ExtendedDocument extends DOMDocument { // appends a DOMDocument::createTextNode() as a child of this document (see there for params) // returns the new child // + // public function appendLinebreak() + // appends a
as a child of this document + // returns the new child + // // public function appendEntity($name) // appends a DOMDocument::createEntityReference() as a child of this document (see there for params) // returns the new child @@ -136,19 +125,15 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementJS() as a child of this document (see there for params) // NO return value! // - // public function appendJSFile($jsURL) + // public function appendJSFile($jsURL, [$defer], [$async]) // appends an ExtendedDocument::createElementJSFile() as a child of this document (see there for params) // returns the new child // - // public function appendCOMElement($module, $attributes) - // appends an ExtendedDocument::createCOMElement() as a child of this document (see there for params) - // returns the new child - // - // public function createElementLink($target, [$value]) - // returns an ExtendedElement that is an HTML with the given target (href) and (optional) value + // public function createElementLink($target, [$value], [$title]) + // returns an ExtendedElement that is an HTML with the given target (href) and (optional) value as well as (optional) title attribute // // public function createElementImage($src, [$alt_text]) - // returns an ExtendedElement that is an HTML with the given (src) and alt attributes (set to '' by default) + // 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
@@ -194,9 +179,9 @@ class ExtendedDocument extends DOMDocument { // returns an ExtendedElement that is an HTML