MediaWiki  REL1_19
HTMLSubmitField Class Reference

Add a submit button inline in the form (as opposed to HTMLForm::addButton(), which will add it at the end). More...

Inheritance diagram for HTMLSubmitField:
Collaboration diagram for HTMLSubmitField:

List of all members.

Public Member Functions

 __construct ($info)
 Initialise the object.
 getInputHTML ($value)
 This function must be implemented to return the HTML to generate the input object itself.
 validate ($value, $alldata)
 Button cannot be invalid.

Protected Member Functions

 needsLabel ()
 Should this field have a label, or is there no input element with the appropriate id for the label to point to?

Detailed Description

Add a submit button inline in the form (as opposed to HTMLForm::addButton(), which will add it at the end).

Definition at line 1983 of file HTMLForm.php.


Constructor & Destructor Documentation

Initialise the object.

Parameters:
$paramsarray Associative Array. See HTMLForm doc for syntax.

Reimplemented from HTMLFormField.

Definition at line 1985 of file HTMLForm.php.


Member Function Documentation

This function must be implemented to return the HTML to generate the input object itself.

It should not implement the surrounding table cells/rows, or labels/help messages.

Parameters:
$valueString the value to set the input to; eg a default text for a text input.
Returns:
String valid HTML.

Reimplemented from HTMLFormField.

Definition at line 1990 of file HTMLForm.php.

References Xml\submitButton().

Here is the call graph for this function:

HTMLSubmitField::needsLabel ( ) [protected]

Should this field have a label, or is there no input element with the appropriate id for the label to point to?

Returns:
bool True to output a label, false to suppress

Reimplemented from HTMLFormField.

Definition at line 2001 of file HTMLForm.php.

HTMLSubmitField::validate ( value,
alldata 
)

Button cannot be invalid.

Parameters:
$valueString
$alldataArray
Returns:
Bool

Reimplemented from HTMLFormField.

Definition at line 2011 of file HTMLForm.php.


The documentation for this class was generated from the following file: