X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fcbsm%2Futil%2Fdocument.php-class;h=a10041a9dc6c2b2e9cfaeb02b5816978e694f680;hp=11ebf973f8738a9b662f0fc8d268eb5827674332;hb=645a7eb6de6a6b0ecdac1a9edb56fe18ce950829;hpb=ae41c41b1625ce16efdbb919df085658b3e5fc15 diff --git a/include/cbsm/util/document.php-class b/include/cbsm/util/document.php-class index 11ebf97..a10041a 100755 --- a/include/cbsm/util/document.php-class +++ b/include/cbsm/util/document.php-class @@ -46,6 +46,10 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementLink() as a child of this document (see there for params) // returns the new child // + // function appendImage($src, [$alt_text]) + // appends an ExtendedDocument::createElementImage() 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
that is a child of the new child @@ -58,6 +62,10 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementInputText() as a child of this document (see there for params) // returns the new child // + // 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 + // // function appendInputRadio($name, $id, $value, $checked) // appends an ExtendedDocument::createElementInputRadio() as a child of this document (see there for params) // returns the new child @@ -70,6 +78,22 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementInputSubmit() as a child of this document (see there for params) // returns the new child // + // function appendButton($value, $onclick = null) + // appends an ExtendedDocument::createElementButton() as a child of this document (see there for params) + // returns the new child + // + // function appendTextArea($name, $columns, $rows, [$id], [$value]) + // appends an ExtendedDocument::createElementTextArea() as a child of this document (see there for params) + // returns the new child + // + // function appendElementSelect($name, [$id], [$options], [$default]) + // appends an ExtendedDocument::createElementSelect() as a child of this document (see there for params) + // returns the new child + // + // function appendElementOption($key, $desc, [$selected]) + // appends an ExtendedDocument::createElementOption() as a child of this document (see there for params) + // returns the new child + // // function appendLabel($for_id, $value) // appends an ExtendedDocument::createElementLabel() as a child of this document (see there for params) // returns the new child @@ -78,6 +102,10 @@ class ExtendedDocument extends DOMDocument { // appends a DOMDocument::createTextNode() as a child of this document (see there for params) // returns the new child // + // function appendComment($comment_data) + // appends a DOMDocument::createComment() as a child of this document (see there for params) + // returns the new child + // // 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! @@ -90,9 +118,16 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementJS() as a child of this document (see there for params) // NO return value! // + // function appendCOMElement($module, $attributes) + // appends an ExtendedDocument::createCOMElement() as a child of this document (see there for params) + // returns the new child + // // function createElementLink($target, [$value]) // returns an ExtendedElement that is an HTML with the given target (href) and (optional) value // + // function createElementImage($src, [$alt_text]) + // returns an ExtendedElement that is an HTML with the given (src) and alt attributes (set to '' by default) + // // 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 @@ -104,6 +139,10 @@ 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 // + // 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 + // // function createElementInputRadio($name, $id, $value, $checked) // returns an ExtendedElement that is an HTML of type 'radio' with the given name, id, value and // checked state @@ -113,18 +152,38 @@ class ExtendedDocument extends DOMDocument { // checked state // // function createElementInputSubmit($value) - // returns an ExtendedElement that is an HTML of type 'submit' with the given name and value + // returns an ExtendedElement that is an HTML of type 'submit' with the given value as label + // + // function createElementButton($value, $onclick = null) + // returns an ExtendedElement that is an HTML button with the given value as label and optionally onclick attribute + // + // function createElementTextArea($name, $columns, $rows, [$id], [$value]) + // returns an ExtendedElement that is an HTML