FileFormField
class FileFormField extends FormField
FileFormField represents a file form field (an HTML file input tag).
Methods
setValue(string $value)
Sets the value of the field.
bool
hasValue()
Returns true if the field should be included in the submitted values.
from FormField
setErrorCode(int $error)
Sets the PHP error code associated with the field.
upload(string $value)
Sets the value of the field.
setFilePath(string $path)
Sets path to the file as string for simulating HTTP request.
Details
in FormField at line line 51
__construct(DOMElement $node)
Constructor.
in FormField at line line 65
string
getName()
Returns the name of the field.
in FormField at line line 75
string|array
getValue()
Gets the value of the field.
at line line 53
setValue(string $value)
Sets the value of the field.
in FormField at line line 95
bool
hasValue()
Returns true if the field should be included in the submitted values.
in FormField at line line 105
bool
isDisabled()
Check if the current field is disabled.
at line line 28
setErrorCode(int $error)
Sets the PHP error code associated with the field.
at line line 43
upload(string $value)
Sets the value of the field.
at line line 86
setFilePath(string $path)
Sets path to the file as string for simulating HTTP request.