00001 <?php 00002 00006 class oxRemark extends oxBase 00007 { 00013 protected $_sClassName = 'oxremark'; 00014 00020 protected $_aSkipSaveFields = array( 'oxcreate' ); 00021 00027 public function __construct() 00028 { 00029 parent::__construct(); 00030 $this->init( 'oxremark' ); 00031 } 00032 00040 public function load( $oxID ) 00041 { 00042 if ( $blRet = parent::load( $oxID ) ) { 00043 // convert date's to international format 00044 $this->oxremark__oxcreate = new oxField(oxUtilsDate::getInstance()->formatDBDate( $this->oxremark__oxcreate->value ), oxField::T_RAW); 00045 } 00046 00047 return $blRet; 00048 } 00049 00055 protected function _insert() 00056 { 00057 // set oxcreate 00058 $sNow = date( 'Y-m-d H:i:s', oxUtilsDate::getInstance()->getTime() ); 00059 $this->oxremark__oxcreate = new oxField($sNow, oxField::T_RAW); 00060 $this->oxremark__oxheader = new oxField($sNow, oxField::T_RAW); 00061 00062 return parent::_insert(); 00063 } 00064 00065 }