Méthode | Description | |
---|---|---|
__construct ( DOMElement $node, string $currentUri, string $method = null, string $baseHref = null ) | Constructor. | |
all ( ) : |
Gets all fields. | |
disableValidation ( ) : self | Disables validation. | |
get ( string $name ) : |
Gets a named field. | |
getFiles ( ) : array | Gets the file field values. | |
getFormNode ( ) : DOMElement | Gets the form node associated with this form. | |
getMethod ( ) : string | Gets the form method. | |
getPhpFiles ( ) : array | Gets the file field values as PHP. | |
getPhpValues ( ) : array | Gets the field values as PHP. | |
getUri ( ) : string | Gets the URI of the form. | |
getValues ( ) : array | Gets the field values. | |
has ( string $name ) : boolean | Returns true if the named field exists. | |
offsetExists ( string $name ) : boolean | Returns true if the named field exists. | |
offsetGet ( string $name ) : |
Gets the value of a field. | |
offsetSet ( string $name, string | array $value ) | Sets the value of a field. | |
offsetUnset ( string $name ) | Removes a field from the form. | |
remove ( string $name ) | Removes a field from the form. | |
set ( |
Sets a named field. | |
setValues ( array $values ) : |
Sets the value of the fields. |
Méthode | Description | |
---|---|---|
getRawUri ( ) | ||
setNode ( DOMElement $node ) | Sets the node for the form. |
Méthode | Description | |
---|---|---|
addField ( DOMElement $node ) | ||
initialize ( ) | Adds form elements related to this form. |
public __construct ( DOMElement $node, string $currentUri, string $method = null, string $baseHref = null ) | ||
$node | DOMElement | A \DOMElement instance |
$currentUri | string | The URI of the page where the form is embedded |
$method | string | The method to use for the link (if null, it defaults to the method defined by the form) |
$baseHref | string | The URI of the |
public all ( ) : |
||
Résultat | An array of fields |
public disableValidation ( ) : self | ||
Résultat | self |
public getFormNode ( ) : DOMElement | ||
Résultat | DOMElement | A \DOMElement instance |
public getPhpFiles ( ) : array | ||
Résultat | array | An array of file field values |
public getPhpValues ( ) : array | ||
Résultat | array | An array of field values |
public offsetExists ( string $name ) : boolean | ||
$name | string | The field name |
Résultat | boolean | true if the field exists, false otherwise |
public offsetUnset ( string $name ) | ||
$name | string | The field name |
public set ( |
||
$field | The field |
protected setNode ( DOMElement $node ) | ||
$node | DOMElement | A \DOMElement instance |