statistic_service.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class Statistic_Service extends oxAdminDetails
00010 {
00017     public function render()
00018     {
00019         parent::render();
00020         $this->_aViewData['iLogCount'] = oxDb::getDb()->getOne( "select count(*) from oxlogs where oxshopid = '".$this->getConfig()->GetShopId()."'");
00021 
00022         return "statistic_service.tpl";
00023     }
00024 
00030     public function cleanup()
00031     {
00032         $iTimeFrame = oxConfig::getParameter( "timeframe");
00033         $dNow = time();
00034         $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)));
00035 
00036         oxDb::getDb()->Execute( "delete from oxlogs where oxtime < '$sDeleteFrom'");
00037     }
00038 }

Generated on Thu Dec 4 12:04:56 2008 for OXID eShop CE by  doxygen 1.5.5