oxremark.php

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