src/ShopBundle/objects/CronJobs/TCMSCronJob_ShopSendBasketLogStatisics.class.php
protected function GetTotalStatistics()
    {
        $sTotalStatistics = "#########################################################\r\n";
        $sTotalStatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.headline')."\r\n";
        $sTotalStatistics .= "------------------------------------\r\n";
        foreach ($this->aCancelStep as $sStempName => $sValue) {
            $sPercent = round((100 / $this->sTotalBaskets) * $sValue);
            if ($sStempName != TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.completed')) {
                $sTotalStatistics .= TGlobal::Translate(
                        'chameleon_system_shop.cron_send_basket_stats.text_aborted',
                        array(
                            '%step%' => $sStempName,
                            '%value%' => $sValue,
                            '%totalBaskets%' => $this->sTotalBaskets,
                            '%percent%' => $sPercent,
                        )
                    )."\r\n";
            } else {
                $sTotalStatistics .= TGlobal::Translate(
                        'chameleon_system_shop.cron_send_basket_stats.text_completed',
                        array(
                            '%value%' => $sValue,
                            '%totalBaskets%' => $this->sTotalBaskets,
                            '%percent%' => $sPercent,
                        )
                    )."\r\n";
            }
        }
        $sTotalStatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.text_total_aborted_orders').': '.$this->sTotalMoneyCanceled;

        return $sTotalStatistics."\r\n";
    }
protected function GetTotalStatistics()
    {
        $sTotalStatistics = "#########################################################\r\n";
        $sTotalStatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.headline')."\r\n";
        $sTotalStatistics .= "------------------------------------\r\n";
        foreach ($this->aCancelStep as $sStempName => $sValue) {
            $sPercent = round((100 / $this->sTotalBaskets) * $sValue);
            if ($sStempName != TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.completed')) {
                $sTotalStatistics .= TGlobal::Translate(
                        'chameleon_system_shop.cron_send_basket_stats.text_aborted',
                        array(
                            '%step%' => $sStempName,
                            '%value%' => $sValue,
                            '%totalBaskets%' => $this->sTotalBaskets,
                            '%percent%' => $sPercent,
                        )
                    )."\r\n";
            } else {
                $sTotalStatistics .= TGlobal::Translate(
                        'chameleon_system_shop.cron_send_basket_stats.text_completed',
                        array(
                            '%value%' => $sValue,
                            '%totalBaskets%' => $this->sTotalBaskets,
                            '%percent%' => $sPercent,
                        )
                    )."\r\n";
            }
        }
        $sTotalStatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.text_total_aborted_orders').': '.$this->sTotalMoneyCanceled;

        return $sTotalStatistics."\r\n";
    }
protected function GetTotalStatistics ( ) { $ sTotalStatistics = "#########################################################\r\n" ; $ sTotalStatistics .= TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.headline' ) . "\r\n" ; $ sTotalStatistics .= "------------------------------------\r\n" ; foreach ( $ this -> aCancelStep as $ sStempName => $ sValue ) { $ sPercent = round ( ( 100 / $ this -> sTotalBaskets ) * $ sValue ) ; if ( $ sStempName != TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.completed' ) ) { $ sTotalStatistics .= TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.text_aborted' , array ( '%step%' => $ sStempName , '%value%' => $ sValue , '%totalBaskets%' => $ this -> sTotalBaskets , '%percent%' => $ sPercent , ) ) . "\r\n" ; } else { $ sTotalStatistics .= TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.text_completed' , array ( '%value%' => $ sValue , '%totalBaskets%' => $ this -> sTotalBaskets , '%percent%' => $ sPercent , ) ) . "\r\n" ; } } $ sTotalStatistics .= TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.text_total_aborted_orders' ) . ': ' . $ this -> sTotalMoneyCanceled ; return $ sTotalStatistics . "\r\n" ; }
Get overfiew statistics of all processed order baskets.

@return string
Get overfiew statistics of all processed order baskets .