From 1109f526885e1e23ab52321ddb941dda14eb5f2f Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Mon, 9 Mar 2015 01:51:47 +0100 Subject: [PATCH] add an appendButton method for adding buttons --- include/cbsm/util/document.php-class | 34 +++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/include/cbsm/util/document.php-class b/include/cbsm/util/document.php-class index 8f6c6cf..257d52b 100755 --- a/include/cbsm/util/document.php-class +++ b/include/cbsm/util/document.php-class @@ -74,6 +74,10 @@ 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 @@ -140,7 +144,10 @@ 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