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