Definition at line 35 of file ExcludeExtension.php.
◆ isValid()
isValid |
( |
|
$value, |
|
|
|
$file = null |
|
) |
| |
Defined by Zend_Validate_Interface
Returns true if and only if the fileextension of $value is not included in the set extension list
- Parameters
-
- Returns
- boolean
Definition at line 61 of file ExcludeExtension.php.
64 #require_once 'Zend/Loader.php'; 66 return $this->
_throw($file, self::NOT_FOUND);
70 $info[
'extension'] = substr($file[
'name'], strrpos($file[
'name'],
'.') + 1);
77 if ($this->_case and (!in_array(
$info[
'extension'], $extensions))) {
79 }
else if (!$this->_case) {
92 return $this->
_throw($file, self::FALSE_EXTENSION);
static isReadable($filename)
_throw($file, $errorType)
foreach( $_productCollection as $_product)() ?>" class $info
◆ $_messageTemplates
Initial value:= array(
self::FALSE_EXTENSION => "File '%value%' has a false extension",
self::NOT_FOUND => "File '%value%' is not readable or does not exist",
)
Definition at line 46 of file ExcludeExtension.php.
◆ FALSE_EXTENSION
const FALSE_EXTENSION = 'fileExcludeExtensionFalse' |
◆ NOT_FOUND
const NOT_FOUND = 'fileExcludeExtensionNotFound' |
The documentation for this class was generated from the following file: