src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
protected function InitBillingAddress()
    {
        $inputFilterUtil = $this->getInputFilterUtil();
        $billingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING);
        if (null !== $billingAddressData) {
            $this->SetBillingAddressData($billingAddressData);
            $this->bUserDataSubmission = true;
        } else {
            $shippingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING);
            if (null !== $shippingAddressData && TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING == $this->AddressUsedAsPrimaryAddress()) {
                $this->SetBillingAddressData($this->GetShippingAddressData());
            } else {
                $oUser = self::getExtranetUserProvider()->getActiveUser();
                $oBilling = $oUser->GetBillingAddress();
                $aBilling = array();
                if ($oBilling) {
                    $aBilling = $oBilling->sqlData;
                }
                $this->SetBillingAddressData($aBilling);
            }
        }
    }
protected function InitBillingAddress()
    {
        $inputFilterUtil = $this->getInputFilterUtil();
        $billingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING);
        if (null !== $billingAddressData) {
            $this->SetBillingAddressData($billingAddressData);
            $this->bUserDataSubmission = true;
        } else {
            $shippingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING);
            if (null !== $shippingAddressData && TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING == $this->AddressUsedAsPrimaryAddress()) {
                $this->SetBillingAddressData($this->GetShippingAddressData());
            } else {
                $oUser = self::getExtranetUserProvider()->getActiveUser();
                $oBilling = $oUser->GetBillingAddress();
                $aBilling = array();
                if ($oBilling) {
                    $aBilling = $oBilling->sqlData;
                }
                $this->SetBillingAddressData($aBilling);
            }
        }
    }
protected function InitBillingAddress ( ) { $ inputFilterUtil = $ this -> getInputFilterUtil ( ) ; $ billingAddressData = $ inputFilterUtil -> getFilteredPostInput ( TdbDataExtranetUserAddress :: FORM_DATA_NAME_BILLING ) ; if ( null !== $ billingAddressData ) { $ this -> SetBillingAddressData ( $ billingAddressData ) ; $ this -> bUserDataSubmission = true ; } else { $ shippingAddressData = $ inputFilterUtil -> getFilteredPostInput ( TdbDataExtranetUserAddress :: FORM_DATA_NAME_SHIPPING ) ; if ( null !== $ shippingAddressData && TdbDataExtranetUserAddress :: FORM_DATA_NAME_SHIPPING == $ this -> AddressUsedAsPrimaryAddress ( ) ) { $ this -> SetBillingAddressData ( $ this -> GetShippingAddressData ( ) ) ; } else { $ oUser = self :: getExtranetUserProvider ( ) -> getActiveUser ( ) ; $ oBilling = $ oUser -> GetBillingAddress ( ) ; $ aBilling = array ( ) ; if ( $ oBilling ) { $ aBilling = $ oBilling -> sqlData ; } $ this -> SetBillingAddressData ( $ aBilling ) ; } } }
initialize billing address data and set the state of UserDataSubmission to true if data was submitted
if no data was submitted the billing address data will be loaded by billing address of user.
initialize billing address data and set the state of UserDataSubmission to true if data was submitted if no data was submitted the billing address data will be loaded by billing address of user .