Inheritance diagram for oxInputValidator:
 Collaboration diagram for oxInputValidator:Public Member Functions | |
| __construct () | |
| validateBasketAmount ($dAmount) | |
| validatePaymentInputData ($sPaymentId, &$aDynvalue) | |
| checkLogin ($oUser, $sLogin, $aInvAddress) | |
| checkEmail ($oUser, $sEmail) | |
| checkPassword ($oUser, $sNewPass, $sConfPass, $blCheckLenght=false) | |
| checkRequiredFields ($oUser, $aInvAddress, $aDelAddress) | |
| checkRequiredArrayFields ($oUser, $sFieldName, $aFieldValues) | |
| checkCountries ($oUser, $aInvAddress, $aDelAddress) | |
| checkVatId ($oUser, $aInvAddress) | |
| getFieldValidationErrors () | |
| getFirstValidationError () | |
Static Public Member Functions | |
| static | getInstance () | 
Protected Member Functions | |
| _addValidationError ($sFieldName, $oErr) | |
Protected Attributes | |
| $_aRequiredCCFields | |
| $_aInputValidationErrors = array() | |
| $_aPossibleCCType | |
| $_aRequiredDCFields | |
Static Private Attributes | |
| static | $_instance = null | 
Calss for validating input
Definition at line 7 of file oxinputvalidator.php.
| oxInputValidator.__construct | ( | ) | 
Class constructor. The constructor is defined in order to be possible to call parent.__construct() in modules.
Reimplemented from oxSuperCfg.
Definition at line 68 of file oxinputvalidator.php.
| oxInputValidator._addValidationError | ( | $ | sFieldName, | |
| $ | oErr | |||
| ) |  [protected] | 
        
Used to collect user validation errors. This method is called from all of the input checking functionality to report found error.
| string | $sFieldName field name | |
| exception | $oErr exception | 
Definition at line 202 of file oxinputvalidator.php.
| oxInputValidator.checkCountries | ( | $ | oUser, | |
| $ | aInvAddress, | |||
| $ | aDelAddress | |||
| ) | 
Checks if user defined countries (billing and delivery) are active
| oxuser | $oUser active user | |
| array | $aInvAddress billing address info | |
| array | $aDelAddress delivery address info | 
Definition at line 413 of file oxinputvalidator.php.
| oxInputValidator.checkEmail | ( | $ | oUser, | |
| $ | sEmail | |||
| ) | 
Checks if email (used as login) is not empty and is valid.
| oxuser | $oUser active user | |
| string | $sEmail user email/login | 
Definition at line 267 of file oxinputvalidator.php.
| oxInputValidator.checkLogin | ( | $ | oUser, | |
| $ | sLogin, | |||
| $ | aInvAddress | |||
| ) | 
Checks if user name does not break logics:
| oxuser | $oUser active user | |
| string | $sLogin user preferred login name | |
| array | $aInvAddress user information | 
Definition at line 221 of file oxinputvalidator.php.
| oxInputValidator.checkPassword | ( | $ | oUser, | |
| $ | sNewPass, | |||
| $ | sConfPass, | |||
| $ |  blCheckLenght = false | |||
| ) | 
Checking if user password is fine. In case of error exception is thrown
| oxuser | $oUser active user | |
| string | $sNewPass new user password | |
| string | $sConfPass retyped user password | |
| bool | $blCheckLenght option to check password lenght | 
Definition at line 297 of file oxinputvalidator.php.
| oxInputValidator.checkRequiredArrayFields | ( | $ | oUser, | |
| $ | sFieldName, | |||
| $ | aFieldValues | |||
| ) | 
Checks if all values are filled up
| oxuser | $oUser active user | |
| string | $sFieldName checking field name | |
| array | $aFieldValues field values | 
Definition at line 392 of file oxinputvalidator.php.
| oxInputValidator.checkRequiredFields | ( | $ | oUser, | |
| $ | aInvAddress, | |||
| $ | aDelAddress | |||
| ) | 
Checking if all required fields were filled. In case of error exception is thrown
| oxuser | $oUser active user | |
| array | $aInvAddress billing address | |
| array | $aDelAddress delivery address | 
Definition at line 334 of file oxinputvalidator.php.
| oxInputValidator.checkVatId | ( | $ | oUser, | |
| $ | aInvAddress | |||
| ) | 
Checks if user passed VAT id is valid. Exception is thrown if id is not valid
| oxuser | $oUser active user | |
| array | $aInvAddress user input array | 
Definition at line 447 of file oxinputvalidator.php.
| oxInputValidator.getFieldValidationErrors | ( | ) | 
Returns true if input validation for current field and rule reported an error
Definition at line 474 of file oxinputvalidator.php.
| oxInputValidator.getFirstValidationError | ( | ) | 
Returns first user input validation error
Definition at line 484 of file oxinputvalidator.php.
| static oxInputValidator.getInstance | ( | ) |  [static] | 
        
Returns oxInputValidator instance
Definition at line 77 of file oxinputvalidator.php.
| oxInputValidator.validateBasketAmount | ( | $ | dAmount | ) | 
Validates basket amount
| float | $dAmount amount of article | 
| oxArticleInputException | if amount is not numeric or smaller 0 | 
Definition at line 105 of file oxinputvalidator.php.
| oxInputValidator.validatePaymentInputData | ( | $ | sPaymentId, | |
| &$ | aDynvalue | |||
| ) | 
Validates payment input data for credit card and debit note
| string | $sPaymentId the payment id of current payment | |
| array | &$aDynvalue values of payment | 
Definition at line 133 of file oxinputvalidator.php.
oxInputValidator.$_aInputValidationErrors = array() [protected] | 
        
Definition at line 34 of file oxinputvalidator.php.
oxInputValidator.$_aPossibleCCType [protected] | 
        
array( 'mcd', 'vis', 'amx', 'dsc', 'dnc', 'jcb', 'swi', 'dlt', 'enr' )
Definition at line 41 of file oxinputvalidator.php.
oxInputValidator.$_aRequiredCCFields [protected] | 
        
array( 'kktype', 'kknumber', 'kkmonth', 'kkyear', 'kkname', 'kkpruef' )
Definition at line 21 of file oxinputvalidator.php.
oxInputValidator.$_aRequiredDCFields [protected] | 
        
array( 'lsbankname', 'lsblz', 'lsktonr', 'lsktoinhaber' )
Definition at line 57 of file oxinputvalidator.php.
oxInputValidator.$_instance = null [static, private] | 
        
Definition at line 14 of file oxinputvalidator.php.
 1.7.1