oxstatistic.php

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