[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/validator/ -> sfFileValidator.class.php (sommaire)

(pas de description)

Poids: 111 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfFileValidator:: (2 méthodes):
  execute()
  initialize()


Classe: sfFileValidator  - X-Ref

sfFileValidator allows you to apply constraints to file upload.

<b>Optional parameters:</b>

# <b>max_size</b>         - [none]               - Maximum file size length.
# <b>max_size_error</b>   - [File is too large]  - An error message to use when
file is too large.
# <b>mime_types</b>       - [none]               - An array of mime types the file
is allowed to match.
# <b>mime_types_error</b> - [Invalid mime type]  - An error message to use when
file mime type does not match a value
listed in the mime types array.

execute(&$value, &$error)   X-Ref
Executes this validator.

param: mixed A file or parameter value/array
param: error An error message reference
return: bool true, if this validator executes successfully, otherwise false

initialize($context, $parameters = null)   X-Ref
Initializes this validator.

param: sfContext The current application context
param: array   An associative array of initialization parameters
return: bool true, if initialization completes successfully, otherwise false



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7