Public Member Functions | |
isValid ($value, $file=null) | |
Data Fields | |
const | TOO_MUCH = 'fileWordCountTooMuch' |
const | TOO_LESS = 'fileWordCountTooLess' |
const | NOT_FOUND = 'fileWordCountNotFound' |
Protected Member Functions | |
_throw ($file, $errorType) | |
Protected Attributes | |
$_messageTemplates |
Definition at line 35 of file WordCount.php.
_throw | ( | $ | file, |
$ | errorType | ||
) | [protected] |
Throws an error of the given type
string | $file | |
string | $errorType |
Reimplemented from Zend_Validate_File_Count.
Definition at line 92 of file WordCount.php.
isValid | ( | $ | value, |
$ | file = null |
||
) |
Defined by Zend_Validate_Interface
Returns true if and only if the counted words are at least min and not bigger than max (when max is not null).
string | $value | Filename to check for word count |
array | $file | File data from Zend_File_Transfer |
Reimplemented from Zend_Validate_File_Count.
Definition at line 64 of file WordCount.php.
$_messageTemplates [protected] |
array( self::TOO_MUCH => "Too much words, maximum '%max%' are allowed but '%count%' were counted", self::TOO_LESS => "Too less words, minimum '%min%' are expected but '%count%' were counted", self::NOT_FOUND => "The file '%value%' could not be found" )
Reimplemented from Zend_Validate_File_Count.
Definition at line 48 of file WordCount.php.
const TOO_MUCH = 'fileWordCountTooMuch' |
#@+ string Error constants
Reimplemented from Zend_Validate_File_Count.
Definition at line 40 of file WordCount.php.