oxInputValidator Class Reference

List of all members.


Detailed Description

Includes credit card validation class. Calss for validating input

Public Member Functions

 validateBasketAmount ($dAmount, $blAllowUnevenAmounts)
 validatePaymentInputData ($sPaymentId, &$aDynvalue)

Protected Attributes

 $_aRequiredCCFields
 $_aPossibleCCType
 $_aRequiredDCFields

Member Function Documentation

oxInputValidator.validateBasketAmount ( dAmount,
blAllowUnevenAmounts 
)

Validates basket amount

Parameters:
float $dAmount amount of article
bool $blAllowUnevenAmounts true if uneven amounts are allowed
Exceptions:
oxArticleInputException if amount is not numeric or smaller 0
Returns:
float

oxInputValidator.validatePaymentInputData ( sPaymentId,
&$  aDynvalue 
)

Validates payment input data for credit card and debit note

Parameters:
string $sPaymentId the payment id of current payment
array &$aDynvalue values of payment
Returns:
bool


Member Data Documentation

oxInputValidator.$_aRequiredCCFields [protected]

Initial value:

 array( 'kktype',
                                           'kknumber',
                                           'kkmonth',
                                           'kkyear',
                                           'kkname',
                                           'kkpruef'
                                          )

oxInputValidator.$_aPossibleCCType [protected]

Initial value:

 array( 'mcd', // Master Card
                                         'vis', // Visa
                                         'amx', // American Express
                                         'dsc', // Discover
                                         'dnc', // Diners Club
                                         'jcb', // JCB
                                         'swi', // Switch
                                         'dlt', // Delta
                                         'enr'  // EnRoute
                                        )

oxInputValidator.$_aRequiredDCFields [protected]

Initial value:

 array( 'lsbankname',
                                           'lsblz',
                                           'lsktonr',
                                           'lsktoinhaber'
                                         )


The documentation for this class was generated from the following file:

Generated on Wed Oct 29 23:44:35 2008 for OXID eShop CE by  doxygen 1.5.5