OXID eShop CE  4.10.4
 All Classes Namespaces Files Functions Variables Pages
oxRequiredAddressFields Class Reference

Public Member Functions

 __construct ()
 setRequiredFields ($aRequiredFields)
 getRequiredFields ()
 getBillingFields ()
 getDeliveryFields ()

Private Member Functions

 _filterFields ($aFields, $sPrefix)

Private Attributes

 $_aDefaultRequiredFields
 $_aRequiredFields = array()

Detailed Description

Defines and returns delivery and billing required fields.

Definition at line 6 of file oxrequiredaddressfields.php.

Constructor & Destructor Documentation

oxRequiredAddressFields::__construct ( )

Sets default required fields either from config or from _aDefaultRequiredFields.

Definition at line 34 of file oxrequiredaddressfields.php.

Member Function Documentation

oxRequiredAddressFields::_filterFields (   $aFields,
  $sPrefix 
)
private

Removes delivery fields from fields list.

Parameters
array$aFields
string$sPrefix
Returns
mixed

Definition at line 96 of file oxrequiredaddressfields.php.

oxRequiredAddressFields::getBillingFields ( )

Returns required fields for user address validation.

Returns
mixed

Definition at line 69 of file oxrequiredaddressfields.php.

oxRequiredAddressFields::getDeliveryFields ( )

Returns required fields for delivery address validation.

Returns
mixed

Definition at line 81 of file oxrequiredaddressfields.php.

oxRequiredAddressFields::getRequiredFields ( )

Returns all required fields.

Returns
array

Definition at line 59 of file oxrequiredaddressfields.php.

oxRequiredAddressFields::setRequiredFields (   $aRequiredFields)

Sets all required fields.

Parameters
array$aRequiredFields

Definition at line 49 of file oxrequiredaddressfields.php.

Member Data Documentation

oxRequiredAddressFields::$_aDefaultRequiredFields
private
Initial value:
array(
'oxuser__oxfname',
'oxuser__oxlname',
'oxuser__oxstreetnr',
'oxuser__oxstreet',
'oxuser__oxzip',
'oxuser__oxcity'
)

Definition at line 14 of file oxrequiredaddressfields.php.

oxRequiredAddressFields::$_aRequiredFields = array()
private

Definition at line 28 of file oxrequiredaddressfields.php.


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