src/ShopDhlPackstationBundle/pkgShop/objects/db/TShopOrderStep/TPkgShopDhlPackstation_ShopStepUserDataV2.class.php
private function updateStepAddressDataForAddressId($newShippingAddressId, $newBillingAddressId)
    {
        $newBillingAddress = TdbDataExtranetUserAddress::GetNewInstance();
        if (true === $newBillingAddress->Load($newBillingAddressId)) {
            $this->SetBillingAddressData($newBillingAddress->sqlData);
        }
        if ($newShippingAddressId === $newBillingAddressId) {
            $this->SetShippingAddressData($newBillingAddress->sqlData);
        } else {
            $newShippingAddress = TdbDataExtranetUserAddress::GetNewInstance();
            if (true === $newShippingAddress->Load($newShippingAddressId)) {
                $this->SetShippingAddressData($newShippingAddress->sqlData);
            }
        }
    }
private function updateStepAddressDataForAddressId($newShippingAddressId, $newBillingAddressId)
    {
        $newBillingAddress = TdbDataExtranetUserAddress::GetNewInstance();
        if (true === $newBillingAddress->Load($newBillingAddressId)) {
            $this->SetBillingAddressData($newBillingAddress->sqlData);
        }
        if ($newShippingAddressId === $newBillingAddressId) {
            $this->SetShippingAddressData($newBillingAddress->sqlData);
        } else {
            $newShippingAddress = TdbDataExtranetUserAddress::GetNewInstance();
            if (true === $newShippingAddress->Load($newShippingAddressId)) {
                $this->SetShippingAddressData($newShippingAddress->sqlData);
            }
        }
    }
private function updateStepAddressDataForAddressId ( $ newShippingAddressId , $ newBillingAddressId ) { $ newBillingAddress = TdbDataExtranetUserAddress :: GetNewInstance ( ) ; if ( true === $ newBillingAddress -> Load ( $ newBillingAddressId ) ) { $ this -> SetBillingAddressData ( $ newBillingAddress -> sqlData ) ; } if ( $ newShippingAddressId === $ newBillingAddressId ) { $ this -> SetShippingAddressData ( $ newBillingAddress -> sqlData ) ; } else { $ newShippingAddress = TdbDataExtranetUserAddress :: GetNewInstance ( ) ; if ( true === $ newShippingAddress -> Load ( $ newShippingAddressId ) ) { $ this -> SetShippingAddressData ( $ newShippingAddress -> sqlData ) ; } } }
Loads given addresses and updates step address data.
Needed for address selection to load the new selected address.

@param string $newShippingAddressId
@param string $newBillingAddressId
Loads given addresses and updates step address data . Needed for address selection to load the new selected address .