Validator which checks if the destination file does not exist
category | Zend |
---|---|
package | Zend_Validate |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Validate_File_Exists |
__construct(string|array|\Zend_Config $directory = array()
)
string
array
\Zend_Config
\Zend_Validate_Exception |
---|
__get(string $property) : mixed
string
\Zend_Validate_Exception |
---|
mixed
addDirectory(string|array $directory) : \Zend_Validate_File_Extension
string
array
The directory to add for validation
\Zend_Validate_Exception |
---|
\Zend_Validate_File_Extension
Provides a fluent interfacegetDefaultTranslator() : \Zend_Translate_Adapter | null
\Zend_Translate_Adapter
null
getDirectory(boolean $asArray = false
) : string
boolean
Returns the values as array, when false an concated string is returned
string
getErrors() : array
deprecated | Since 1.5.0 |
---|
array
getMessageLength() : integer
integer
getMessageTemplates() : array
array
getMessageVariables() : array
array
getMessages() : array
If isValid() was never called or if the most recent isValid() call returned true, then this method returns an empty array.
inherited_from | \Zend_Validate_Interface::getMessages() |
---|
array
getObscureValue() : boolean
boolean
getTranslator() : \Zend_Translate_Adapter | null
\Zend_Translate_Adapter
null
hasDefaultTranslator() : boolean
boolean
hasTranslator() : boolean
boolean
isValid(string $value, array $file = null
) : boolean
Returns true if and only if the file does not exist in the set destinations
inherited_from | \Zend_Validate_File_Exists::isValid() |
---|
string
Real file to check for
array
File data from Zend_File_Transfer
boolean
isValid(string $value, array $file = null
) : boolean
Returns true if and only if the file already exists in the set directories
string
Real file to check for existance
array
File data from Zend_File_Transfer
boolean
setDefaultTranslator(\Zend_Translate|\Zend_Translate_Adapter|null $translator = null
)
\Zend_Translate
\Zend_Translate_Adapter
null
\Zend_Validate_Exception |
---|
setDirectory(string|array $directory) : \Zend_Validate_File_Extension
string
array
The directories to validate
\Zend_Validate_File_Extension
Provides a fluent interfacesetDisableTranslator(boolean $flag) : \Zend_Validate_Abstract
boolean
\Zend_Validate_Abstract
setMessage(string $messageString, string $messageKey = null
) : \Zend_Validate_Abstract
string
string
OPTIONAL
\Zend_Validate_Exception |
---|
\Zend_Validate_Abstract
Provides a fluent interfacesetMessageLength(integer $length = -1
)
integer
setMessages(array $messages) : \Zend_Validate_Abstract
array
\Zend_Validate_Abstract
setObscureValue(boolean $flag) : \Zend_Validate_Abstract
boolean
\Zend_Validate_Abstract
setTranslator(\Zend_Translate|\Zend_Translate_Adapter|null $translator = null
) : \Zend_Validate_Abstract
\Zend_Translate
\Zend_Translate_Adapter
null
\Zend_Validate_Exception |
---|
\Zend_Validate_Abstract
translatorIsDisabled() : boolean
boolean
_createMessage(string $messageKey, string $value) : string
Returns null if and only if $messageKey does not correspond to an existing template.
If a translator is available and a translation exists for $messageKey, the translation will be used.
string
string
string
_error(string $messageKey, string $value = null
) : void
string
string
OPTIONAL
_implodeRecursive(array $pieces) : string
array
string
_setValue(mixed $value) : void
mixed
_throw(string $file, string $errorType) : false
string
string
false
$_defaultTranslator : \Zend_Translate
$_directory : string
''
$_errors : array
array()
deprecated | Since 1.5.0 |
---|
$_obscureValue : boolean
false
$_translator : \Zend_Translate
$_translatorDisabled : Boolean
false
$_value : mixed
DOES_EXIST = 'fileNotExistsDoesExist'
const | string Error constants |
---|
DOES_NOT_EXIST = 'fileExistsDoesNotExist'
const | string Error constants |
---|