Class: HTMLForm
Source Location: /forms/HTMLForm.class.php
ABSTObject
|
--ABSTHTMLTag
|
--HTMLForm
A class to generate forms.
Author(s):
Version:
Copyright:
Copyright (C) 2003 Daniel Plücken <daniel@debakel.net> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
static method getRightRequestData [line 554]
static array getRightRequestData(
string
$request_input)
|
|
Returns raw data from a given request variable; Removes escapings if magic quotes is enabled.
Tags:
Parameters:
static method isFormItem [line 495]
static void isFormItem(
object
&$ref, [string
$no_debug = false])
|
|
Adds references of form-items to this object.
Tags:
Parameters:
constructor HTMLForm [line 327]
void HTMLForm(
[string
$name = "DP_form"], [string
$onSubmitOrder = ""], [string
$targetFile = ""], [string
$method = "POST"])
|
|
Constructor
Tags:
Parameters:
method addDummyItem [line 1203]
void addDummyItem(
string|object
$name)
|
|
Adds dummy-form-item to this object. It doesn't apear on the website. It is only to inform the form about a custum generatet input field, for example to add the FCKeditor to the form.
Tags:
Parameters:
method addFormBodyText [line 1079]
void addFormBodyText(
string
$text, [string
$where = "BEFOREITEMS"])
|
|
Adds text into the form.
Tags:
Parameters:
method addFormItem [line 1100]
mixed &addFormItem(
&$item, [string
$requireJSOutput = ""], object
$item)
|
|
Adds references of form-items to this object.
Tags:
Parameters:
method addHiddenFormItem [line 1155]
void addHiddenFormItem(
string|object
$name, [string
$value = ""])
|
|
Adds hidden-form-items to this object.
Tags:
Parameters:
method changeHiddenFormItem [line 1240]
void changeHiddenFormItem(
$name,
$value)
|
|
Changes the value of the hidden form item with the given namen.
Tags:
Parameters:
method disable [line 1279]
Disables all formitems. This function is an alias for the function disableAllFormItems()
Tags:
method disableAllFormItems [line 1261]
void disableAllFormItems(
)
|
|
Disables all formitems.
Tags:
method get [line 1466]
string get(
[HTMLTable
$obj_ref = ""], [boolean
$php_code = false])
|
|
Returns a generated string based on the Attributes of this HTML-Object.
Tags:
Overridden in child classes as:
- ContactForm::get()
- Returns a generated string based on the Attributes of this HTML-Object.
Parameters:
method getFieldsAndValues [line 577]
array getFieldsAndValues(
[array
$matching_field_arr = ""])
|
|
Returns the fieldnames and values of the form by a two dimensional array.
Tags:
Overridden in child classes as:
- DBTfillingForm::getFieldsAndValues()
- Returns the fieldnames and values of the form by a two dimensional array.
Parameters:
method getFormInTag [line 424]
Builds the tag to introduce the html form.
Tags:
method getFormItemCount [line 1308]
integer getFormItemCount(
)
|
|
Returns the count of items of this form.
Tags:
method getItemPHPSource [line 1376]
string getItemPHPSource(
)
|
|
Generates the sourcecode to build this object and returns it.
Tags:
method getJScheckData [line 1322]
Returns a javascript to validate the input of the form.
Tags:
method getMethod [line 410]
Returns the method-attribute of this form.
Tags:
method getName [line 367]
Returns the name of this form.
Tags:
Overrides ABSTHTMLTag::getName() (Returns the value of this tag's "name"-attribute.)
method getPHPSource [line 1416]
method getSubmitOrder [line 381]
Returns the javascript that should execute on form submit.
Tags:
method getTargetFile [line 396]
Returns the action-attribute of this form.
Tags:
method overrideWholeFormBody [line 1046]
void overrideWholeFormBody(
$string, boolean
$bool)
|
|
Overides the body of the form with the given custom string.
Tags:
Parameters:
method removeHiddenFormItem [line 1218]
void removeHiddenFormItem(
string
$name)
|
|
Removes the hidden item with the given name.
Tags:
Parameters:
method setDisabled [line 1294]
Disables all formitems. This function is an alias for the function disableAllFormItems()
Tags:
method setFormBody [line 819]
void setFormBody(
[HTMLTable
$obj_ref = ""], [boolean
$php_code = false])
|
|
Builds the content of this Form andstores it in the attribute form_body.
Tags:
Parameters:
method setJSerrorMessage [line 1031]
void setJSerrorMessage(
$string
$string)
|
|
Sets the javascript error message that appears if user information is missing.
Tags:
Parameters:
method setLayoutString [line 478]
void setLayoutString(
$string, string|object
$name, string
$value)
|
|
Adds the string by dint of the form should be formatted.
Tags:
Parameters:
method setLayoutTable [line 462]
void setLayoutTable(
&$ref, string|object
$name, string
$value)
|
|
Adds the table by dint of the form should be formatted.
Tags:
Parameters:
method setMethod [line 1015]
Sets the method, how the data should be send; POST or GET.
Tags:
Parameters:
method setName [line 958]
Sets the name of this form.
Tags:
Overrides ABSTHTMLTag::setName() (Stores the value of this tag's "name"-attribute.)
Parameters:
method setNoFormat [line 1061]
void setNoFormat(
[boolean
$bool = true])
|
|
Stores that the HTML-elements should not format by "\r\n" in the source.
Tags:
Overrides ABSTHTMLTag::setNoFormat() (Stores that the HTML-elements should not format by "\r\n" in the source.)
Parameters:
method setSubmitOrder [line 972]
void setSubmitOrder(
$string)
|
|
Sets the javascript that should execute on submit.
Tags:
Parameters:
method setTargetFile [line 986]
void setTargetFile(
$string)
|
|
Sets the target script of the data; The "action"-attribute.
Tags:
Parameters:
method setTargetFrame [line 1001]
void setTargetFrame(
$string)
|
|
Sets the target frame where the target script should appear; The "target"-attribute.
Tags:
Parameters:
|
|