Public Member Functions | |
__construct ($directory=array()) | |
getDirectory ($asArray=false) | |
setDirectory ($directory) | |
addDirectory ($directory) | |
isValid ($value, $file=null) | |
Data Fields | |
const | DOES_NOT_EXIST = 'fileExistsDoesNotExist' |
Protected Member Functions | |
_throw ($file, $errorType) | |
Protected Attributes | |
$_messageTemplates | |
$_directory = '' | |
$_messageVariables |
Definition at line 35 of file Exists.php.
__construct | ( | $ | directory = array() ) |
Sets validator options
string | array | Zend_Config | $directory |
Definition at line 68 of file Exists.php.
_throw | ( | $ | file, |
$ | errorType | ||
) | [protected] |
Throws an error of the given type
string | $file | |
string | $errorType |
Definition at line 194 of file Exists.php.
addDirectory | ( | $ | directory ) |
Adds the file directory which will be checked
string | array | $directory | The directory to add for validation |
Definition at line 118 of file Exists.php.
getDirectory | ( | $ | asArray = false ) |
Returns the set file directories which are checked
boolean | $asArray | Returns the values as array, when false an concated string is returned |
Definition at line 88 of file Exists.php.
isValid | ( | $ | value, |
$ | file = null |
||
) |
Defined by Zend_Validate_Interface
Returns true if and only if the file already exists in the set directories
string | $value | Real file to check for existance |
array | $file | File data from Zend_File_Transfer |
Reimplemented in Zend_Validate_File_NotExists.
Definition at line 159 of file Exists.php.
setDirectory | ( | $ | directory ) |
Sets the file directory which will be checked
string | array | $directory | The directories to validate |
Definition at line 105 of file Exists.php.
$_messageTemplates [protected] |
array(
self::DOES_NOT_EXIST => "The file '%value%' does not exist"
)
Reimplemented from Zend_Validate_Abstract.
Definition at line 45 of file Exists.php.
$_messageVariables [protected] |
array( 'directory' => '_directory' )
Reimplemented from Zend_Validate_Abstract.
Definition at line 58 of file Exists.php.
const DOES_NOT_EXIST = 'fileExistsDoesNotExist' |
string Error constants
Definition at line 40 of file Exists.php.