sfFileValidator allows you to apply constraints to file upload.
Method Details
-
(bool) execute (&$value, (error) &$error)
Browse code
| &$value |
A file or parameter value/array
|
| &$error |
An error message reference
|
Executes this validator.
returns true, if this validator executes successfully, otherwise false
-
(bool) initialize ((sfContext) $context, $parameters = null)
Browse code
| $context |
The current application context
|
| $parameters |
An associative array of initialization parameters
|
Initializes this validator.
returns true, if initialization completes successfully, otherwise false
|