Symfony\Component\DomCrawler\Field\FileFormField
FileFormField represents a file form field (an HTML file input tag).
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class FileFormField
extends FormField
{
- // Inherited members from FormField
- protected DOMNode $node;
- protected string $name;
- protected string $value;
- protected DOMDocument $document;
- protected DOMXPath $xpath;
- protected Boolean $disabled;
- // methods
- public void setErrorCode()
- public void upload()
- public void setValue()
- public void setFilePath()
- protected void initialize()
- // Inherited methods from FormField
- public void __construct()
- public string getName()
- public string|array getValue()
- public void setValue()
- public Boolean hasValue()
- public Boolean isDisabled()
- protected abstract void initialize()
Hierarchy
Members
protected
- $disabled — Symfony\Component\DomCrawler\Field\Boolean
- $document — \DOMDocument
- $name — string
- $node — \DOMNode
- $value — string
- $xpath — \DOMXPath
Methods
protected
- initialize() — Initializes the form field.
public
- setErrorCode() — Sets the PHP error code associated with the field.
- setFilePath() — Sets path to the file as string for simulating HTTP request
- setValue() — Sets the value of the field.
- upload() — Sets the value of the field.
Inherited from Symfony\Component\DomCrawler\Field\FormField
protected
- initialize() — Initializes the form field.
public
- getName() — Returns the name of the field.
- getValue() — Gets the value of the field.
- hasValue() — Returns true if the field should be included in the submitted values.
- isDisabled() — Check if the current field is disabled
- setValue() — Sets the value of the field.