Public Member Functions | Protected Attributes

oxInputValidator Class Reference

List of all members.

Public Member Functions

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

Protected Attributes

 $_aRequiredCCFields
 $_aPossibleCCType
 $_aRequiredDCFields

Detailed Description

Calss for validating input

Definition at line 7 of file oxinputvalidator.php.


Constructor & Destructor Documentation

oxInputValidator.__construct (  ) 

Class constructor. The constructor is defined in order to be possible to call parent.__construct() in modules.

Returns:
null;

Definition at line 54 of file oxinputvalidator.php.


Member Function Documentation

oxInputValidator.validateBasketAmount ( dAmount  ) 

Validates basket amount

Parameters:
float $dAmount amount of article
Exceptions:
oxArticleInputException if amount is not numeric or smaller 0
Returns:
float

Definition at line 67 of file oxinputvalidator.php.

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

Definition at line 95 of file oxinputvalidator.php.


Member Data Documentation

oxInputValidator.$_aPossibleCCType [protected]
Initial value:
 array( 'mcd', 
                                         'vis', 
                                         'amx', 
                                         'dsc', 
                                         'dnc', 
                                         'jcb', 
                                         'swi', 
                                         'dlt', 
                                         'enr'  
                                        )

Definition at line 27 of file oxinputvalidator.php.

oxInputValidator.$_aRequiredCCFields [protected]
Initial value:
 array( 'kktype',
                                           'kknumber',
                                           'kkmonth',
                                           'kkyear',
                                           'kkname',
                                           'kkpruef'
                                          )

Definition at line 14 of file oxinputvalidator.php.

oxInputValidator.$_aRequiredDCFields [protected]
Initial value:
 array( 'lsbankname',
                                           'lsblz',
                                           'lsktonr',
                                           'lsktoinhaber'
                                         )

Definition at line 43 of file oxinputvalidator.php.


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