OXID eShop CE
4.8.11
Main Page
Related Pages
Classes
Files
File List
File Members
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
{
30
parent::__construct
();
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
}
application
models
oxremark.php
Generated by
1.8.1.2