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