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