oxstatistic.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class oxStatistic extends oxBase
00008 {
00012     protected $_sClassName = 'oxstatistic';
00013 
00017     public function __construct()
00018     {
00019         parent::__construct();
00020         $this->init( 'oxstatistics' );
00021     }
00022 
00030     public function setReports( $aVal )
00031     {
00032         $this->oxstatistics__oxvalue = new oxField( serialize( $aVal ), oxField::T_RAW );
00033     }
00034 
00040     public function getReports()
00041     {
00042         return unserialize($this->oxstatistics__oxvalue->value);
00043     }
00044 
00054     protected function _setFieldData( $sFieldName, $sValue, $iDataType = oxField::T_TEXT )
00055     {
00056         if ( 'oxvalue' === $sFieldName ) {
00057             $iDataType = oxField::T_RAW;
00058         }
00059         return parent::_setFieldData($sFieldName, $sValue, $iDataType);
00060     }
00061 }

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