src/ShopBundle/objects/db/TShopOrder.class.php
protected function AddOrderNotificationEmailData($aMailData)
    {
        $oLocal = TCMSLocal::GetActive();
        $oTmp = $this->GetFieldAdrBillingCountry();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_billing_country_name');
        $oTmp = $this->GetFieldAdrBillingSalutation();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_billing_salutation_name');
        $oTmp = $this->GetFieldAdrShippingCountry();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_shipping_country_name');
        $oTmp = $this->GetFieldAdrShippingSalutation();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_shipping_salutation_name');
        $oTmp = $this->GetFieldDataExtranetUser();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'data_extranet_user_name');
        $oTmp = $this->GetFieldShop();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'shop_name');
        $oTmp = $this->GetFieldShopPaymentMethod();
        if (null !== $oTmp) {
            $aMailData['shop_payment_method_name'] = $oTmp->fieldName;
        }
        $oTmp = $this->GetFieldShopShippingGroup();
        if (null !== $oTmp) {
            $aMailData['shop_shipping_group_name'] = $oTmp->fieldName;
        }

        $aMailData['datecreated'] = $oLocal->FormatDate($this->fieldDatecreated, TCMSLocal::DATEFORMAT_SHOW_DATE);

        return $aMailData;
    }
protected function AddOrderNotificationEmailData($aMailData)
    {
        $oLocal = TCMSLocal::GetActive();
        $oTmp = $this->GetFieldAdrBillingCountry();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_billing_country_name');
        $oTmp = $this->GetFieldAdrBillingSalutation();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_billing_salutation_name');
        $oTmp = $this->GetFieldAdrShippingCountry();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_shipping_country_name');
        $oTmp = $this->GetFieldAdrShippingSalutation();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'adr_shipping_salutation_name');
        $oTmp = $this->GetFieldDataExtranetUser();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'data_extranet_user_name');
        $oTmp = $this->GetFieldShop();
        $aMailData = $this->AddOrderNotificationEmailDataArray($aMailData, $oTmp, 'shop_name');
        $oTmp = $this->GetFieldShopPaymentMethod();
        if (null !== $oTmp) {
            $aMailData['shop_payment_method_name'] = $oTmp->fieldName;
        }
        $oTmp = $this->GetFieldShopShippingGroup();
        if (null !== $oTmp) {
            $aMailData['shop_shipping_group_name'] = $oTmp->fieldName;
        }

        $aMailData['datecreated'] = $oLocal->FormatDate($this->fieldDatecreated, TCMSLocal::DATEFORMAT_SHOW_DATE);

        return $aMailData;
    }
protected function AddOrderNotificationEmailData ( $ aMailData ) { $ oLocal = TCMSLocal :: GetActive ( ) ; $ oTmp = $ this -> GetFieldAdrBillingCountry ( ) ; $ aMailData = $ this -> AddOrderNotificationEmailDataArray ( $ aMailData , $ oTmp , 'adr_billing_country_name' ) ; $ oTmp = $ this -> GetFieldAdrBillingSalutation ( ) ; $ aMailData = $ this -> AddOrderNotificationEmailDataArray ( $ aMailData , $ oTmp , 'adr_billing_salutation_name' ) ; $ oTmp = $ this -> GetFieldAdrShippingCountry ( ) ; $ aMailData = $ this -> AddOrderNotificationEmailDataArray ( $ aMailData , $ oTmp , 'adr_shipping_country_name' ) ; $ oTmp = $ this -> GetFieldAdrShippingSalutation ( ) ; $ aMailData = $ this -> AddOrderNotificationEmailDataArray ( $ aMailData , $ oTmp , 'adr_shipping_salutation_name' ) ; $ oTmp = $ this -> GetFieldDataExtranetUser ( ) ; $ aMailData = $ this -> AddOrderNotificationEmailDataArray ( $ aMailData , $ oTmp , 'data_extranet_user_name' ) ; $ oTmp = $ this -> GetFieldShop ( ) ; $ aMailData = $ this -> AddOrderNotificationEmailDataArray ( $ aMailData , $ oTmp , 'shop_name' ) ; $ oTmp = $ this -> GetFieldShopPaymentMethod ( ) ; if ( null !== $ oTmp ) { $ aMailData [ 'shop_payment_method_name' ] = $ oTmp -> fieldName ; } $ oTmp = $ this -> GetFieldShopShippingGroup ( ) ; if ( null !== $ oTmp ) { $ aMailData [ 'shop_shipping_group_name' ] = $ oTmp -> fieldName ; } $ aMailData [ 'datecreated' ] = $ oLocal -> FormatDate ( $ this -> fieldDatecreated , TCMSLocal :: DATEFORMAT_SHOW_DATE ) ; return $ aMailData ; }
Add values for name parameter to email data array.

@param array $aMailData

@return array
Add values for name parameter to email data array .