class TextareaFormField in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Field/TextareaFormField.php \Symfony\Component\DomCrawler\Field\TextareaFormField
TextareaFormField represents a textarea form field (an HTML textarea tag).
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\DomCrawler\Field\FormField
- class \Symfony\Component\DomCrawler\Field\TextareaFormField
Expanded class hierarchy of TextareaFormField
2 files declare their use of TextareaFormField
- BrowserKitDriver.php in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - TextareaFormFieldTest.php in vendor/
symfony/ dom-crawler/ Tests/ Field/ TextareaFormFieldTest.php
1 string reference to 'TextareaFormField'
- FormTest::provideInitializeValues in vendor/
symfony/ dom-crawler/ Tests/ FormTest.php
File
- vendor/
symfony/ dom-crawler/ Field/ TextareaFormField.php, line 19
Namespace
Symfony\Component\DomCrawler\FieldView source
class TextareaFormField extends FormField {
/**
* Initializes the form field.
*
* @throws \LogicException When node type is incorrect
*/
protected function initialize() {
if ('textarea' !== $this->node->nodeName) {
throw new \LogicException(sprintf('A TextareaFormField can only be created from a textarea tag (%s given).', $this->node->nodeName));
}
$this->value = '';
foreach ($this->node->childNodes as $node) {
$this->value .= $node->wholeText;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormField:: |
protected | property | ||
FormField:: |
protected | property | ||
FormField:: |
protected | property | ||
FormField:: |
protected | property | ||
FormField:: |
protected | property | ||
FormField:: |
protected | property | ||
FormField:: |
public | function | Returns the name of the field. | |
FormField:: |
public | function | Gets the value of the field. | |
FormField:: |
public | function | Returns true if the field should be included in the submitted values. | 1 |
FormField:: |
public | function | Check if the current field is disabled. | 1 |
FormField:: |
public | function | Sets the value of the field. | 2 |
FormField:: |
public | function | Constructor. | |
TextareaFormField:: |
protected | function |
Initializes the form field. Overrides FormField:: |