oxstatistic.php

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

Generated on Wed Apr 22 12:26:31 2009 for OXID eShop CE by  doxygen 1.5.5