statistic_service.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class Statistic_Service extends oxAdminDetails
00009 {
00016     public function render()
00017     {
00018         parent::render();
00019         $this->_aViewData['iLogCount'] = oxDb::getDb()->getOne( "select count(*) from oxlogs where oxshopid = '".$this->getConfig()->GetShopId()."'");
00020 
00021         return "statistic_service.tpl";
00022     }
00023 
00029     public function cleanup()
00030     {
00031         $iTimeFrame = oxConfig::getParameter( "timeframe");
00032         $dNow = time();
00033         $sDeleteFrom = date( "Y-m-d H:i:s", mktime( date( "H", $dNow), date( "i", $dNow), date( "s", $dNow), date( "m", $dNow), date( "d", $dNow) - $iTimeFrame, date( "Y", $dNow)));
00034 
00035         oxDb::getDb()->Execute( "delete from oxlogs where oxtime < '$sDeleteFrom'");
00036     }
00037 }

Generated on Tue Apr 21 15:45:44 2009 for OXID eShop CE by  doxygen 1.5.5