Symfony2 API
Class

Symfony\Component\DomCrawler\Field\TextareaFormField

class TextareaFormField extends FormField

TextareaFormField represents a textarea form field (an HTML textarea tag).

Methods

__construct(DOMNode $node)

Constructor.

from FormField
string getName()

Returns the name of the field.

from FormField
string|array getValue()

Gets the value of the field.

from FormField
setValue(string $value)

Sets the value of the field.

from FormField
Boolean hasValue()

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

from FormField
Boolean isDisabled()

Check if the current field is disabled

from FormField

Details

in FormField at line 51
public __construct(DOMNode $node)

Constructor.

Parameters

DOMNode $node The node associated with this field

in FormField at line 71
public string getName()

Returns the name of the field.

Return Value

string The name of the field

in FormField at line 81
public string|array getValue()

Gets the value of the field.

Return Value

string|array The value of the field

in FormField at line 93
public setValue(string $value)

Sets the value of the field.

Parameters

string $value The value of the field

in FormField at line 103
public Boolean hasValue()

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

Return Value

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

in FormField at line 113
public Boolean isDisabled()

Check if the current field is disabled

Return Value

Boolean