Detailed Description
Definition at line 22 of file form.php.
Member Function Documentation
Adds a checkbox, making it a group on a repeated name.
- Parameters:
-
Definition at line 186 of file form.php.
Adds a radio button, building a group if necessary.
- Parameters:
-
Definition at line 173 of file form.php.
Combined action attribute with current location to get an absolute form target.
- Parameters:
-
| string | $action | Action attribute from form tag. |
| SimpleUrl | $base | Page location. |
- Returns:
- SimpleUrl Absolute form target.
Definition at line 93 of file form.php.
Creates the encoding for the current values in the form.
- Returns:
- SimpleFormEncoding Request to submit. private
Definition at line 119 of file form.php.
Creates the request packet to be sent by the form.
- Parameters:
-
- Returns:
- string Packet class. private
Definition at line 58 of file form.php.
Sets the widget into the form, grouping radio buttons if any.
- Parameters:
-
Definition at line 158 of file form.php.
Adds a tag contents to the form.
- Parameters:
-
Definition at line 142 of file form.php.
Used by the page object to set widgets labels to external label tags.
- Parameters:
-
| SimpleSelector | $selector | Criteria to apply. public |
Definition at line 253 of file form.php.
Absolute URL of the target.
- Returns:
- SimpleUrl URL target. public
Definition at line 105 of file form.php.
ID field of form for unique identification.
- Returns:
- string Unique tag ID. public
Definition at line 133 of file form.php.
Accessor for method of form submission.
- Returns:
- string Either get or post. public
Definition at line 82 of file form.php.
Extracts current value from form.
- Parameters:
-
| SimpleSelector | $selector | Criteria to apply. |
- Returns:
- string/array Value(s) as string or null if not set. public
Definition at line 208 of file form.php.
Test to see if a form has an image control.
- Parameters:
-
| SimpleSelector | $selector | Criteria to apply. |
- Returns:
- boolean True if present. public
Definition at line 285 of file form.php.
Test to see if a form has a submit button.
- Parameters:
-
| SimpleSelector | $selector | Criteria to apply. |
- Returns:
- boolean True if present. public
Definition at line 270 of file form.php.
Sets the frame target within a frameset.
- Parameters:
-
| string | $frame | Name of frame. public |
Definition at line 73 of file form.php.
| setField |
( |
$ |
selector, |
|
|
$ |
value, |
|
|
$ |
position = false |
|
) |
| |
Sets a widget value within the form.
- Parameters:
-
| SimpleSelector | $selector | Criteria to apply. |
| string | $value | Value to input into the widget. |
- Returns:
- boolean True if value is legal, false otherwise. If the field is not present, nothing will be set. public
Definition at line 231 of file form.php.
Starts with no held controls/widgets.
- Parameters:
-
Definition at line 39 of file form.php.
Simply submits the form without the submit button value. Used when there is only one button or it is unimportant.
- Returns:
- hash Submitted values. public
Definition at line 351 of file form.php.
Gets the submit values for a selected button.
- Parameters:
-
| SimpleSelector | $selector | Criteria to apply. |
| hash | $additional | Additional data for the form. |
- Returns:
- SimpleEncoding Submitted values or false if there is no such button in the form. public
Definition at line 303 of file form.php.
| submitImage |
( |
$ |
selector, |
|
|
$ |
x, |
|
|
$ |
y, |
|
|
$ |
additional = false |
|
) |
| |
Gets the submit values for an image.
- Parameters:
-
| SimpleSelector | $selector | Criteria to apply. |
| integer | $x | X-coordinate of click. |
| integer | $y | Y-coordinate of click. |
| hash | $additional | Additional data for the form. |
- Returns:
- SimpleEncoding Submitted values or false if there is no such button in the form. public
Definition at line 329 of file form.php.
Field Documentation
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/simpletestlib/form.php