src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
protected function GetShippingAddressData($sReturnThisParameterOnly = null)
    {
        $aReturnVal = false;
        if (array_key_exists('aShipping', $this->aUserData)) {
            $aAddress = $this->aUserData['aShipping'];
            if (array_key_exists('id', $aAddress) && !array_key_exists('selectedAddressId', $aAddress)) {
                $aAddress['selectedAddressId'] = $aAddress['id'];
            }
            $oActiveUser = self::getExtranetUserProvider()->getActiveUser();
            if ($oActiveUser && !empty($oActiveUser->id)) {
                $aAddress['data_extranet_user_id'] = $oActiveUser->id;
            }
            $aCheckboxFields = $this->GetShippingAddressCheckboxFields();
            foreach ($aCheckboxFields as $sFieldName) {
                if (!array_key_exists($sFieldName, $aAddress)) {
                    $aAddress[$sFieldName] = '0';
                }
            }

            if (!is_null($sReturnThisParameterOnly)) {
                if (array_key_exists($sReturnThisParameterOnly, $aAddress)) {
                    $aReturnVal = $aAddress[$sReturnThisParameterOnly];
                }
            } else {
                $aReturnVal = $aAddress;
            }
        }

        return $aReturnVal;
    }
protected function GetShippingAddressData($sReturnThisParameterOnly = null)
    {
        $aReturnVal = false;
        if (array_key_exists('aShipping', $this->aUserData)) {
            $aAddress = $this->aUserData['aShipping'];
            if (array_key_exists('id', $aAddress) && !array_key_exists('selectedAddressId', $aAddress)) {
                $aAddress['selectedAddressId'] = $aAddress['id'];
            }
            $oActiveUser = self::getExtranetUserProvider()->getActiveUser();
            if ($oActiveUser && !empty($oActiveUser->id)) {
                $aAddress['data_extranet_user_id'] = $oActiveUser->id;
            }
            $aCheckboxFields = $this->GetShippingAddressCheckboxFields();
            foreach ($aCheckboxFields as $sFieldName) {
                if (!array_key_exists($sFieldName, $aAddress)) {
                    $aAddress[$sFieldName] = '0';
                }
            }

            if (!is_null($sReturnThisParameterOnly)) {
                if (array_key_exists($sReturnThisParameterOnly, $aAddress)) {
                    $aReturnVal = $aAddress[$sReturnThisParameterOnly];
                }
            } else {
                $aReturnVal = $aAddress;
            }
        }

        return $aReturnVal;
    }
protected function GetShippingAddressData ( $ sReturnThisParameterOnly = null ) { $ aReturnVal = false ; if ( array_key_exists ( 'aShipping' , $ this -> aUserData ) ) { $ aAddress = $ this -> aUserData [ 'aShipping' ] ; if ( array_key_exists ( 'id' , $ aAddress ) && ! array_key_exists ( 'selectedAddressId' , $ aAddress ) ) { $ aAddress [ 'selectedAddressId' ] = $ aAddress [ 'id' ] ; } $ oActiveUser = self :: getExtranetUserProvider ( ) -> getActiveUser ( ) ; if ( $ oActiveUser && ! empty ( $ oActiveUser -> id ) ) { $ aAddress [ 'data_extranet_user_id' ] = $ oActiveUser -> id ; } $ aCheckboxFields = $ this -> GetShippingAddressCheckboxFields ( ) ; foreach ( $ aCheckboxFields as $ sFieldName ) { if ( ! array_key_exists ( $ sFieldName , $ aAddress ) ) { $ aAddress [ $ sFieldName ] = '0' ; } } if ( ! is_null ( $ sReturnThisParameterOnly ) ) { if ( array_key_exists ( $ sReturnThisParameterOnly , $ aAddress ) ) { $ aReturnVal = $ aAddress [ $ sReturnThisParameterOnly ] ; } } else { $ aReturnVal = $ aAddress ; } } return $ aReturnVal ; }
return shipping address data from user post.

@param string $sReturnThisParameterOnly - if set, then only that field of the address is returned. if that field is not found, we return false

@return array|bool
return shipping address data from user post .