Public Member Functions | Protected Member Functions | Private Attributes

oxCompanyVatIn Class Reference

List of all members.

Public Member Functions

 __construct ($sCompanyVatNumber)
 getCountryCode ()
 getNumbers ()
 __toString ()

Protected Member Functions

 _cleanUp ($sValue)

Private Attributes

 $_sCompanyVatNumber

Detailed Description

Company VAT identification number (VATIN)

Definition at line 7 of file oxcompanyvatin.php.


Constructor & Destructor Documentation

oxCompanyVatIn.__construct ( sCompanyVatNumber  ) 

Constructor

Parameters:
string $sCompanyVatNumber - company vat identification number.

Definition at line 22 of file oxcompanyvatin.php.


Member Function Documentation

oxCompanyVatIn.__toString (  ) 

Cast to string

Returns:
string

Definition at line 65 of file oxcompanyvatin.php.

oxCompanyVatIn._cleanUp ( sValue  )  [protected]

Removes spaces and symbols: '-',',','.' from string

Parameters:
string $sValue Value.
Returns:
string

Definition at line 54 of file oxcompanyvatin.php.

oxCompanyVatIn.getCountryCode (  ) 

Returns country code from number.

Returns:
string

Definition at line 32 of file oxcompanyvatin.php.

oxCompanyVatIn.getNumbers (  ) 

Returns country code from number.

Returns:
string

Definition at line 42 of file oxcompanyvatin.php.


Member Data Documentation

oxCompanyVatIn.$_sCompanyVatNumber [private]

Definition at line 15 of file oxcompanyvatin.php.


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