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