class FormField

FormField is the abstract class for all form fields.

Methods

__construct(DOMElement $node)

No description

DOMElement|null
getLabel()

Returns the label tag associated to the field or null if none.

string
getName()

Returns the name of the field.

string|array
getValue()

Gets the value of the field.

setValue(string $value)

Sets the value of the field.

bool
hasValue()

Returns true if the field should be included in the submitted values.

bool
isDisabled()

Check if the current field is disabled.

Details

at line line 49
__construct(DOMElement $node)

Parameters

DOMElement $node The node associated with this field

at line line 63
DOMElement|null getLabel()

Returns the label tag associated to the field or null if none.

Return Value

DOMElement|null

at line line 87
string getName()

Returns the name of the field.

Return Value

string The name of the field

at line line 97
string|array getValue()

Gets the value of the field.

Return Value

string|array The value of the field

at line line 107
setValue(string $value)

Sets the value of the field.

Parameters

string $value The value of the field

at line line 117
bool hasValue()

Returns true if the field should be included in the submitted values.

Return Value

bool true if the field should be included in the submitted values, false otherwise

at line line 127
bool isDisabled()

Check if the current field is disabled.

Return Value

bool