Definition at line 33 of file Digits.php.
◆ isValid()
Defined by Zend_Validate_Interface
Returns true if and only if $value only contains digit characters
- Parameters
-
- Returns
- boolean
Implements Zend_Validate_Interface.
Definition at line 65 of file Digits.php.
68 $this->
_error(self::INVALID);
74 if (
'' === $this->_value) {
75 $this->
_error(self::STRING_EMPTY);
79 if (
null === self::$_filter) {
80 #require_once 'Zend/Filter/Digits.php'; 84 if ($this->_value !== self::$_filter->filter($this->_value)) {
85 $this->
_error(self::NOT_DIGITS);
_error($messageKey, $value=null)
◆ $_filter
◆ $_messageTemplates
Initial value:= array(
self::NOT_DIGITS => "'%value%' must contain only digits",
self::STRING_EMPTY => "'%value%' is an empty string",
self::INVALID => "Invalid type given. String, integer or float expected",
)
Definition at line 51 of file Digits.php.
◆ INVALID
const INVALID = 'digitsInvalid' |
◆ NOT_DIGITS
const NOT_DIGITS = 'notDigits' |
◆ STRING_EMPTY
const STRING_EMPTY = 'digitsStringEmpty' |
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Validate/Digits.php