OXID eShop CE  4.10.6
 All Classes Namespaces Files Functions Variables Pages
oxremark.php
Go to the documentation of this file.
1 <?php
2 
7 class oxRemark extends oxBase
8 {
9 
15  protected $_sClassName = 'oxremark';
16 
22  protected $_aSkipSaveFields = array('oxtimestamp');
23 
29  public function __construct()
30  {
32  $this->init('oxremark');
33  }
34 
42  public function load($oxID)
43  {
44  if ($blRet = parent::load($oxID)) {
45  // convert date's to international format
46  $this->oxremark__oxcreate = new oxField(oxRegistry::get("oxUtilsDate")->formatDBDate($this->oxremark__oxcreate->value), oxField::T_RAW);
47  }
48 
49  return $blRet;
50  }
51 
57  protected function _insert()
58  {
59  // set oxcreate
60  $sNow = date('Y-m-d H:i:s', oxRegistry::get("oxUtilsDate")->getTime());
61  $this->oxremark__oxcreate = new oxField($sNow, oxField::T_RAW);
62  $this->oxremark__oxheader = new oxField($sNow, oxField::T_RAW);
63 
64  return parent::_insert();
65  }
66 }