src/ShopBundle/objects/WebModules/MTShopOrderHistory.class.php
private function getOrder(TdbShopOrder $oOrder, $bCachingEnabled, IMapperCacheTriggerRestricted $oCacheTriggerManager)
    {
        $aOrder = array();

        $oLocal = TCMSLocal::GetActive();

        $aOrder['sOrderDate'] = $oLocal->FormatDate($oOrder->fieldDatecreated, TCMSLocal::DATEFORMAT_SHOW_DATE);
        $aOrder['sOrdernumber'] = $oOrder->fieldOrdernumber;
        $aOrder['sSumGrandTotal'] = $oOrder->fieldValueTotalFormated;
        $aOrder['sShippingAddress'] = $this->getShippingAddress($oOrder, $bCachingEnabled, $oCacheTriggerManager);
        $aOrder['sDetailLink'] = $this->getDetailLink($oOrder);
        $orderCurrency = $oOrder->GetFieldPkgShopCurrency();
        if (null !== $orderCurrency) {
            $aOrder['currencyIso'] = $orderCurrency->fieldIso4217;
            $aOrder['currencySymbol'] = $orderCurrency->fieldSymbol;
        }
        $aOrder['bActive'] = false;

        return $aOrder;
    }
private function getOrder(TdbShopOrder $oOrder, $bCachingEnabled, IMapperCacheTriggerRestricted $oCacheTriggerManager)
    {
        $aOrder = array();

        $oLocal = TCMSLocal::GetActive();

        $aOrder['sOrderDate'] = $oLocal->FormatDate($oOrder->fieldDatecreated, TCMSLocal::DATEFORMAT_SHOW_DATE);
        $aOrder['sOrdernumber'] = $oOrder->fieldOrdernumber;
        $aOrder['sSumGrandTotal'] = $oOrder->fieldValueTotalFormated;
        $aOrder['sShippingAddress'] = $this->getShippingAddress($oOrder, $bCachingEnabled, $oCacheTriggerManager);
        $aOrder['sDetailLink'] = $this->getDetailLink($oOrder);
        $orderCurrency = $oOrder->GetFieldPkgShopCurrency();
        if (null !== $orderCurrency) {
            $aOrder['currencyIso'] = $orderCurrency->fieldIso4217;
            $aOrder['currencySymbol'] = $orderCurrency->fieldSymbol;
        }
        $aOrder['bActive'] = false;

        return $aOrder;
    }
private function getOrder ( TdbShopOrder $ oOrder , $ bCachingEnabled , IMapperCacheTriggerRestricted $ oCacheTriggerManager ) { $ aOrder = array ( ) ; $ oLocal = TCMSLocal :: GetActive ( ) ; $ aOrder [ 'sOrderDate' ] = $ oLocal -> FormatDate ( $ oOrder -> fieldDatecreated , TCMSLocal :: DATEFORMAT_SHOW_DATE ) ; $ aOrder [ 'sOrdernumber' ] = $ oOrder -> fieldOrdernumber ; $ aOrder [ 'sSumGrandTotal' ] = $ oOrder -> fieldValueTotalFormated ; $ aOrder [ 'sShippingAddress' ] = $ this -> getShippingAddress ( $ oOrder , $ bCachingEnabled , $ oCacheTriggerManager ) ; $ aOrder [ 'sDetailLink' ] = $ this -> getDetailLink ( $ oOrder ) ; $ orderCurrency = $ oOrder -> GetFieldPkgShopCurrency ( ) ; if ( null !== $ orderCurrency ) { $ aOrder [ 'currencyIso' ] = $ orderCurrency -> fieldIso4217 ; $ aOrder [ 'currencySymbol' ] = $ orderCurrency -> fieldSymbol ; } $ aOrder [ 'bActive' ] = false ; return $ aOrder ; }
value map for one order.

@param TdbShopOrder                  $oOrder
@param bool                          $bCachingEnabled
@param IMapperCacheTriggerRestricted $oCacheTriggerManager

@return array
value map for one order .