Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Validator which checks if the file already exists in the directory
DOES_NOT_EXIST = 'fileExistsDoesNotExist'
Detailsstring $_directory = ''Internal list of directories
Detailsarray $_messageTemplates = 'array'
Detailsarray $_messageVariables = 'array'
Details__construct(
string|array|Zend_Config $directory
=
array
)
:
voidSets validator options
Details_throw(
string $file, string $errorType
)
:
falseThrows an error of the given type
DetailsaddDirectory(
string|array $directory
)
:
Zend_Validate_File_ExtensionAdds the file directory which will be checked
DetailsgetDirectory(
boolean $asArray
=
false
)
:
stringReturns the set file directories which are checked
DetailsisValid(
string $value, array $file
=
null
)
:
booleanDefined by Zend_Validate_Interface
Returns true if and only if the file already exists in the set directories
DetailssetDirectory(
string|array $directory
)
:
Zend_Validate_File_ExtensionSets the file directory which will be checked
Details