Symfony\Component\DomCrawler\Form
Form represents an HTML form.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Form
extends Link
implements
ArrayAccess
{
- // Inherited members from Link
- protected DOMNode $node;
- protected string $method;
- protected string $currentUri;
- // methods
- public void __construct()
- public DOMNode getFormNode()
- public Form setValues()
- public array getValues()
- public array getFiles()
- public array getPhpValues()
- public array getPhpFiles()
- public string getUri()
- protected void getRawUri()
- public string getMethod()
- public Boolean has()
- public void remove()
- public FormField get()
- public void set()
- public array all()
- public Boolean offsetExists()
- public FormField offsetGet()
- public void offsetSet()
- public void offsetUnset()
- protected void setNode()
- private void initialize()
- private void addField()
- // Inherited methods from Link
- public void __construct()
- public DOMNode getNode()
- public string getMethod()
- public string getUri()
- protected string getRawUri()
- protected string canonicalizePath()
- protected void setNode()
Hierarchy
Members
Methods
private
protected
- getRawUri()
- setNode() — Sets the node for the form.
public
- __construct() — Constructor.
- all() — Gets all fields.
- get() — Gets a named field.
- getFiles() — Gets the file field values.
- getFormNode() — Gets the form node associated with this form.
- getMethod() — Gets the form method.
- getPhpFiles() — Gets the file field values as PHP.
- getPhpValues() — Gets the field values as PHP.
- getUri() — Gets the URI of the form.
- getValues() — Gets the field values.
- has() — Returns true if the named field exists.
- offsetExists() — Returns true if the named field exists.
- offsetGet() — Gets the value of a field.
- offsetSet() — Sets the value of a field.
- offsetUnset() — Removes a field from the form.
- remove() — Removes a field from the form.
- set() — Sets a named field.
- setValues() — Sets the value of the fields.
Inherited from Symfony\Component\DomCrawler\Link
protected
- canonicalizePath() — Returns the canonicalized URI path (see RFC 3986, section 5.2.4)
- getRawUri() — Returns raw uri data.
- setNode() — Sets current \DOMNode instance.
public
- getMethod() — Gets the method associated with this link.
- getNode() — Gets the node associated with this link.
- getUri() — Gets the URI associated with this link.