OXID eShop CE  4.10.1
 All Classes Namespaces Files Functions Variables Pages
oxCompanyVatInValidator Class Reference

Public Member Functions

 setCountry (oxCountry $oCountry)
 getCountry ()
 setError ($sError)
 getError ()
 __construct (oxCountry $oCountry)
 addChecker (oxCompanyVatInChecker $oValidator)
 getCheckers ()
 validate (oxCompanyVatIn $oCompanyVatNumber)

Private Attributes

 $_oCountry = null
 $_aCheckers = array()
 $_sError = ''

Detailed Description

Company VAT identification number validator. Executes added validators on given VATIN.

Definition at line 6 of file oxcompanyvatinvalidator.php.

Constructor & Destructor Documentation

oxCompanyVatInValidator::__construct ( oxCountry  $oCountry)

Constructor

Parameters
oxCountry$oCountry

Definition at line 73 of file oxcompanyvatinvalidator.php.

Member Function Documentation

oxCompanyVatInValidator::addChecker ( oxCompanyVatInChecker  $oValidator)

Adds validator

Parameters
oxCompanyVatInChecker$oValidator

Definition at line 83 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::getCheckers ( )

Returns added validators

Returns
array

Definition at line 93 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::getCountry ( )

Country getter

Returns
oxCountry

Definition at line 43 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::getError ( )

Error getter

Returns
string

Definition at line 63 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::setCountry ( oxCountry  $oCountry)

Country setter

Parameters
oxCountry$oCountry

Definition at line 33 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::setError (   $sError)

Error setter

Parameters
string$sError

Definition at line 53 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::validate ( oxCompanyVatIn  $oCompanyVatNumber)

Validate company VAT identification number.

Parameters
oxCompanyVatIn$oCompanyVatNumber
Returns
bool

Definition at line 105 of file oxcompanyvatinvalidator.php.

Member Data Documentation

oxCompanyVatInValidator::$_aCheckers = array()
private

Definition at line 19 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::$_oCountry = null
private

Definition at line 12 of file oxcompanyvatinvalidator.php.

oxCompanyVatInValidator::$_sError = ''
private

Definition at line 26 of file oxcompanyvatinvalidator.php.


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