Class Zend_Validate_Ccnum

Description
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Validate/Ccnum.php (line 42)

Zend_Validate_Abstract
   |
   --Zend_Validate_Ccnum
Class Constant Summary
 CHECKSUM = 'ccnumChecksum'
 LENGTH = 'ccnumLength'
Variable Summary
Method Summary
 boolean isValid (string $value)
Variables
array $_messageTemplates = array(
self::LENGTH => "'%value%' must contain between 13 and 19 digits",
self::CHECKSUM => "Luhn algorithm (mod-10 checksum) failed on '%value%'"
)
(line 51)
  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates

Inherited Variables

Inherited from Zend_Validate_Abstract

Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_messageVariables
Zend_Validate_Abstract::$_value
Methods
isValid (line 64)

Defined by Zend_Validate_Interface

Returns true if and only if $value follows the Luhn algorithm (mod-10 checksum)

  • access: public
boolean isValid (string $value)
  • string $value

Inherited Methods

Inherited From Zend_Validate_Abstract

 Zend_Validate_Abstract::getErrors()
 Zend_Validate_Abstract::getMessages()
 Zend_Validate_Abstract::setMessage()
 Zend_Validate_Abstract::setMessages()
 Zend_Validate_Abstract::_createMessage()
 Zend_Validate_Abstract::_error()
 Zend_Validate_Abstract::_setValue()
 Zend_Validate_Abstract::__get()
Class Constants
CHECKSUM = 'ccnumChecksum' (line 46)
LENGTH = 'ccnumLength' (line 45)

Documentation generated on Sun, 27 May 2007 23:21:25 -0700 by phpDocumentor 1.3.2