메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
getRawUri ( ) | ||
setNode ( DOMElement $node ) | Sets the node for the form. |
메소드 | 설명 | |
---|---|---|
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 ( ) : |
||
리턴 | An array of fields |
public getFormNode ( ) : DOMElement | ||
리턴 | DOMElement | A \DOMElement instance |
public getPhpFiles ( ) : array | ||
리턴 | array | An array of file field values |
public getPhpValues ( ) : array | ||
리턴 | array | An array of field values |
public offsetExists ( string $name ) : boolean | ||
$name | string | The field name |
리턴 | 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 |