25 #require_once 'Zend/Validate/File/Exists.php'; 46 self::DOES_EXIST =>
"File '%value%' exists",
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)
isValid($value, $file=null)
_throw($file, $errorType)