iPhorm_Validator_FileUploadFileUpload Validator
Located in /iPhorm/Validator/FileUpload.php (line 10)
iPhorm_Validator_Abstract | --iPhorm_Validator_FileUpload
array
$_allowedExtensions
= array() (line 24)
Allowed file extensions
int|float
$_maximumFileSize
= 10485760 (line 33)
Maximum file size in bytes
Default is 10MB (10485760 bytes)
string
$_name
(line 17)
The name of the element to check in the $_FILES array
boolean
$_required
= false (line 40)
Required flag
int
$_requiredCount
= 0 (line 47)
How many files are required for a multiple upload element, 0 = all
Inherited from iPhorm_Validator_Abstract
iPhorm_Validator_Abstract::$_messages
Constructor __construct (line 57)
Class constructor
A string with the name of the element or an array of options with a name key is required
getAllowedExtensions (line 222)
Get the allowed extensions
getMaximumFileSize (line 242)
Get the maximum file size in bytes
getName (line 196)
Get the name of the element
getRequired (line 262)
Get whether the file is required or not
getRequiredCount (line 282)
Get the count for required files for a multiple upload field
isValid (line 87)
Returns true if and only if the uploaded file is free of errors
setAllowedExtensions (line 208)
Set the allowed extensions, an array of lowercase extensions e.g. array('jpg', 'jpeg', 'gif'). An empty array means all file extensions are allowed
setMaximumFileSize (line 232)
Set the maximum file size in bytes
setName (line 186)
Set the name of the element to validate in $_FILES
setRequired (line 252)
Set whether the file is required or not
setRequiredCount (line 272)
Set the count for required files for a multiple upload field
_getFileUploadError (line 295)
Get the error message corresponding to the error code generated by PHP file uploads and this validator
Inherited From iPhorm_Validator_Abstract
iPhorm_Validator_Abstract::addMessage()
iPhorm_Validator_Abstract::getMessages()
Documentation generated on Thu, 24 Feb 2011 22:19:37 +0000 by phpDocumentor 1.4.3