Public Member Functions |
| __construct ($min=0, $max=null, $encoding=null) |
| getMin () |
| setMin ($min) |
| getMax () |
| setMax ($max) |
| getEncoding () |
| setEncoding ($encoding=null) |
| isValid ($value) |
Data Fields |
const | INVALID = 'stringLengthInvalid' |
const | TOO_SHORT = 'stringLengthTooShort' |
const | TOO_LONG = 'stringLengthTooLong' |
Protected Attributes |
| $_messageTemplates |
| $_messageVariables |
| $_min |
| $_max |
| $_encoding |
Detailed Description
Definition at line 33 of file StringLength.php.
Constructor & Destructor Documentation
__construct |
( |
$ |
min = 0 , |
|
|
$ |
max = null , |
|
|
$ |
encoding = null |
|
) |
| |
Sets validator options
- Parameters:
-
- Returns:
- void
Definition at line 86 of file StringLength.php.
Member Function Documentation
setEncoding |
( |
$ |
encoding = null ) |
|
Field Documentation
$_messageTemplates [protected] |
Initial value: array(
self::INVALID => "Invalid type given, value should be a string",
self::TOO_SHORT => "'%value%' is less than %min% characters long",
self::TOO_LONG => "'%value%' is greater than %max% characters long"
)
Reimplemented from Zend_Validate_Abstract.
Definition at line 42 of file StringLength.php.
$_messageVariables [protected] |
The documentation for this class was generated from the following file: