|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct ($options=array()) | |
| getType () | |
| setType ($type) | |
| addType ($type) | |
| getService () | |
| setService ($service) | |
| isValid ($value) | |
Public Member Functions inherited from Zend_Validate_Abstract | |
| getMessages () | |
| getMessageVariables () | |
| getMessageTemplates () | |
| setMessage ($messageString, $messageKey=null) | |
| setMessages (array $messages) | |
| __get ($property) | |
| getErrors () | |
| setObscureValue ($flag) | |
| getObscureValue () | |
| setTranslator ($translator=null) | |
| getTranslator () | |
| hasTranslator () | |
| setDisableTranslator ($flag) | |
| translatorIsDisabled () | |
Data Fields | |
| const | ALL = 'All' |
| const | AMERICAN_EXPRESS = 'American_Express' |
| const | UNIONPAY = 'Unionpay' |
| const | DINERS_CLUB = 'Diners_Club' |
| const | DINERS_CLUB_US = 'Diners_Club_US' |
| const | DISCOVER = 'Discover' |
| const | JCB = 'JCB' |
| const | LASER = 'Laser' |
| const | MAESTRO = 'Maestro' |
| const | MASTERCARD = 'Mastercard' |
| const | SOLO = 'Solo' |
| const | VISA = 'Visa' |
| const | CHECKSUM = 'creditcardChecksum' |
| const | CONTENT = 'creditcardContent' |
| const | INVALID = 'creditcardInvalid' |
| const | LENGTH = 'creditcardLength' |
| const | PREFIX = 'creditcardPrefix' |
| const | SERVICE = 'creditcardService' |
| const | SERVICEFAILURE = 'creditcardServiceFailure' |
Protected Attributes | |
| $_messageTemplates | |
| $_cardLength | |
| $_cardType | |
| $_type = array() | |
| $_service | |
Protected Attributes inherited from Zend_Validate_Abstract | |
| $_value | |
| $_messageVariables = array() | |
| $_messageTemplates = array() | |
| $_messages = array() | |
| $_obscureValue = false | |
| $_errors = array() | |
| $_translator | |
| $_translatorDisabled = false | |
Additional Inherited Members | |
Static Public Member Functions inherited from Zend_Validate_Abstract | |
| static | setDefaultTranslator ($translator=null) |
| static | getDefaultTranslator () |
| static | hasDefaultTranslator () |
| static | getMessageLength () |
| static | setMessageLength ($length=-1) |
Protected Member Functions inherited from Zend_Validate_Abstract | |
| _createMessage ($messageKey, $value) | |
| _implodeRecursive (array $pieces) | |
| _error ($messageKey, $value=null) | |
| _setValue ($value) | |
Static Protected Attributes inherited from Zend_Validate_Abstract | |
| static | $_defaultTranslator |
| static | $_messageLength = -1 |
Definition at line 33 of file CreditCard.php.
| __construct | ( | $options = array() | ) |
Constructor
| string | array | Zend_Config | $options | OPTIONAL Type of CCI to allow |
Definition at line 141 of file CreditCard.php.
| addType | ( | $type | ) |
Adds a CCI to be accepted by validation
| string | array | $type | Type to allow for validation |
Definition at line 193 of file CreditCard.php.
| getService | ( | ) |
| getType | ( | ) |
| isValid | ( | $value | ) |
Defined by Zend_Validate_Interface
Returns true if and only if $value follows the Luhn algorithm (mod-10 checksum)
| string | $value |
Implements Zend_Validate_Interface.
Definition at line 248 of file CreditCard.php.
| setService | ( | $service | ) |
Sets a new callback for service validation
| mixed | $service |
| Zend_Validate_Exception |
Definition at line 229 of file CreditCard.php.
| setType | ( | $type | ) |
Sets CCIs which are accepted by validation
| string | array | $type | Type to allow for validation |
Definition at line 181 of file CreditCard.php.
|
protected |
Definition at line 81 of file CreditCard.php.
|
protected |
Definition at line 100 of file CreditCard.php.
|
protected |
Definition at line 66 of file CreditCard.php.
|
protected |
Definition at line 134 of file CreditCard.php.
|
protected |
Definition at line 127 of file CreditCard.php.
| const ALL = 'All' |
Definition at line 40 of file CreditCard.php.
| const AMERICAN_EXPRESS = 'American_Express' |
Definition at line 41 of file CreditCard.php.
| const CHECKSUM = 'creditcardChecksum' |
Definition at line 53 of file CreditCard.php.
| const CONTENT = 'creditcardContent' |
Definition at line 54 of file CreditCard.php.
| const DINERS_CLUB = 'Diners_Club' |
Definition at line 43 of file CreditCard.php.
| const DINERS_CLUB_US = 'Diners_Club_US' |
Definition at line 44 of file CreditCard.php.
| const DISCOVER = 'Discover' |
Definition at line 45 of file CreditCard.php.
| const INVALID = 'creditcardInvalid' |
Definition at line 55 of file CreditCard.php.
| const JCB = 'JCB' |
Definition at line 46 of file CreditCard.php.
| const LASER = 'Laser' |
Definition at line 47 of file CreditCard.php.
| const LENGTH = 'creditcardLength' |
Definition at line 56 of file CreditCard.php.
| const MAESTRO = 'Maestro' |
Definition at line 48 of file CreditCard.php.
| const MASTERCARD = 'Mastercard' |
Definition at line 49 of file CreditCard.php.
| const PREFIX = 'creditcardPrefix' |
Definition at line 57 of file CreditCard.php.
| const SERVICE = 'creditcardService' |
Definition at line 58 of file CreditCard.php.
| const SERVICEFAILURE = 'creditcardServiceFailure' |
Definition at line 59 of file CreditCard.php.
| const SOLO = 'Solo' |
Definition at line 50 of file CreditCard.php.
| const UNIONPAY = 'Unionpay' |
Definition at line 42 of file CreditCard.php.
| const VISA = 'Visa' |
Definition at line 51 of file CreditCard.php.