src/ShopBundle/objects/CronJobs/TCMSCronJob_ShopSendBasketLogStatisics.class.php
protected function GenerateStatisticsFromOrderBasket($oOrderBasket)
    {
        $sStatistics = '';
        if (empty($oOrderBasket->fieldShopOrderId)) {
            $sStatistics = $this->GetCancelBasketInformation($oOrderBasket);
            $oUser = TdbDataExtranetUser::GetNewInstance();
            $oUser = unserialize(base64_decode($oOrderBasket->fieldRawdataUser));
            if (is_object($oUser)) {
                $sStatistics .= $this->GetUserStatistics($oUser);
            }
            $oBasket = new TShopBasket();
            $oBasket = unserialize(base64_decode($oOrderBasket->fieldRawdataBasket));
            if (is_object($oBasket)) {
                $sStatistics .= $this->GetBasketStatistics($oBasket);
            }
            $sStatistics .= "#########################################################\r\n";
        } else {
            $this->AddCompleteOrderToStatistics();
        }

        return $sStatistics;
    }
protected function GenerateStatisticsFromOrderBasket($oOrderBasket)
    {
        $sStatistics = '';
        if (empty($oOrderBasket->fieldShopOrderId)) {
            $sStatistics = $this->GetCancelBasketInformation($oOrderBasket);
            $oUser = TdbDataExtranetUser::GetNewInstance();
            $oUser = unserialize(base64_decode($oOrderBasket->fieldRawdataUser));
            if (is_object($oUser)) {
                $sStatistics .= $this->GetUserStatistics($oUser);
            }
            $oBasket = new TShopBasket();
            $oBasket = unserialize(base64_decode($oOrderBasket->fieldRawdataBasket));
            if (is_object($oBasket)) {
                $sStatistics .= $this->GetBasketStatistics($oBasket);
            }
            $sStatistics .= "#########################################################\r\n";
        } else {
            $this->AddCompleteOrderToStatistics();
        }

        return $sStatistics;
    }
protected function GenerateStatisticsFromOrderBasket ( $ oOrderBasket ) { $ sStatistics = '' ; if ( empty ( $ oOrderBasket -> fieldShopOrderId ) ) { $ sStatistics = $ this -> GetCancelBasketInformation ( $ oOrderBasket ) ; $ oUser = TdbDataExtranetUser :: GetNewInstance ( ) ; $ oUser = unserialize ( base64_decode ( $ oOrderBasket -> fieldRawdataUser ) ) ; if ( is_object ( $ oUser ) ) { $ sStatistics .= $ this -> GetUserStatistics ( $ oUser ) ; } $ oBasket = new TShopBasket ( ) ; $ oBasket = unserialize ( base64_decode ( $ oOrderBasket -> fieldRawdataBasket ) ) ; if ( is_object ( $ oBasket ) ) { $ sStatistics .= $ this -> GetBasketStatistics ( $ oBasket ) ; } $ sStatistics .= "#########################################################\r\n" ; } else { $ this -> AddCompleteOrderToStatistics ( ) ; } return $ sStatistics ; }
Generate user and basket statistics for given order basket.

@param TdbShopOrderBasket $oOrderBasket

@return string
Generate user and basket statistics for given order basket .