Definition at line 35 of file NotExists.php.
◆ isValid()
isValid |
( |
|
$value, |
|
|
|
$file = null |
|
) |
| |
Defined by Zend_Validate_Interface
Returns true if and only if the file does not exist in the set destinations
- Parameters
-
- Returns
- boolean
Definition at line 58 of file NotExists.php.
61 if (($file !==
null) and (!empty($file[
'destination']))) {
62 $directories[] = $file[
'destination'];
63 }
else if (!isset($file[
'name'])) {
67 foreach ($directories as $directory) {
68 if (empty($directory)) {
73 if (file_exists($directory . DIRECTORY_SEPARATOR . $file[
'name'])) {
74 return $this->
_throw($file, self::DOES_EXIST);
79 return $this->
_throw($file, self::DOES_EXIST);
getDirectory($asArray=false)
_throw($file, $errorType)
◆ $_messageTemplates
Initial value:= array(
self::DOES_EXIST => "File '%value%' exists",
)
Definition at line 45 of file NotExists.php.
◆ DOES_EXIST
const DOES_EXIST = 'fileNotExistsDoesExist' |
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Validate/File/NotExists.php