src/ShopBundle/objects/CronJobs/TCMSCronJob_ShopSendBasketLogStatisics.class.php
protected function _ExecuteCron()
    {
        $sQuery = "SELECT * FROM `shop_order_basket`
                         WHERE `shop_order_basket`.`processed` != '1'
                      ORDER BY `shop_order_basket`.`lastmodified` DESC";
        $oOrderBasketList = TdbShopOrderBasketList::GetList($sQuery);
        $sStatistics = "#########################################################\r\n";
        while ($oOrderBasket = $oOrderBasketList->Next()) {
            $sStatistics .= $this->GenerateStatisticsFromOrderBasket($oOrderBasket);
            $this->MarkOrderBasketAsProcessed($oOrderBasket);
            ++$this->sTotalBaskets;
        }
        if ($oOrderBasketList->Length() > 0) {
            $sTotalStatistics = $this->GetTotalStatistics().$sStatistics;
            $this->SendBasketStatistics($sTotalStatistics);
        }
    }
protected function _ExecuteCron()
    {
        $sQuery = "SELECT * FROM `shop_order_basket`
                         WHERE `shop_order_basket`.`processed` != '1'
                      ORDER BY `shop_order_basket`.`lastmodified` DESC";
        $oOrderBasketList = TdbShopOrderBasketList::GetList($sQuery);
        $sStatistics = "#########################################################\r\n";
        while ($oOrderBasket = $oOrderBasketList->Next()) {
            $sStatistics .= $this->GenerateStatisticsFromOrderBasket($oOrderBasket);
            $this->MarkOrderBasketAsProcessed($oOrderBasket);
            ++$this->sTotalBaskets;
        }
        if ($oOrderBasketList->Length() > 0) {
            $sTotalStatistics = $this->GetTotalStatistics().$sStatistics;
            $this->SendBasketStatistics($sTotalStatistics);
        }
    }
protected function _ExecuteCron ( ) { $ sQuery = "SELECT * FROM `shop_order_basket`
                         WHERE `shop_order_basket`.`processed` != '1'
                      ORDER BY `shop_order_basket`.`lastmodified` DESC" ; $ oOrderBasketList = TdbShopOrderBasketList :: GetList ( $ sQuery ) ; $ sStatistics = "#########################################################\r\n" ; while ( $ oOrderBasket = $ oOrderBasketList -> Next ( ) ) { $ sStatistics .= $ this -> GenerateStatisticsFromOrderBasket ( $ oOrderBasket ) ; $ this -> MarkOrderBasketAsProcessed ( $ oOrderBasket ) ; ++ $ this -> sTotalBaskets ; } if ( $ oOrderBasketList -> Length ( ) > 0 ) { $ sTotalStatistics = $ this -> GetTotalStatistics ( ) . $ sStatistics ; $ this -> SendBasketStatistics ( $ sTotalStatistics ) ; } }
Get all none processed shop baskets and send generated statistics to shop owner.
Get all none processed shop baskets and send generated statistics to shop owner .