Class Length
Check if the length (or size) of input is equals specified length or in specified length range
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Length
public
boolean
|
|
protected
boolean
|
|
public
integer|false
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$notDetectedMessage
|
#
'%name%\'s length could not be detected'
|
protected
string
|
$lengthMessage
|
#
'%name% must have a length of %length%'
|
protected
string
|
$lengthItemMessage
|
#
'%name% must contain %length% item(s)'
|
protected
string
|
$notInMessage
|
#
'%name% must have a length between %min% and %max%'
|
protected
string
|
$notInItemMessage
|
#
'%name% must contain %min% to %max% item(s)'
|
protected
|
$min
|
|
protected
|
$max
|
|
protected
integer
|
$length
The required exactly length of input |
|
protected
boolean
|
$countByChars
Whether count the string length by characters or bytes |
#
false
|
protected
string
|
$charset
The character encoding |
#
'UTF-8'
|
$errors,
$name,
$negative,
$negativeMessage,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|