本文整理汇总了PHP中oxBase::load方法的典型用法代码示例。如果您正苦于以下问题:PHP oxBase::load方法的具体用法?PHP oxBase::load怎么用?PHP oxBase::load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oxBase
的用法示例。
在下文中一共展示了oxBase::load方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load
/**
* Loads object review information. Returns true on success.
*
* @param string $oxId ID of object to load
*
* @return bool
*/
public function load($oxId)
{
if ($blRet = parent::load($oxId)) {
// convert date's to international format
$this->oxreviews__oxcreate->setValue(oxUtilsDate::getInstance()->formatDBDate($this->oxreviews__oxcreate->value));
}
return $blRet;
}
示例2: load
/**
* Loads object information from DB. Returns true on success.
*
* @param string $oxID ID of object to load
*
* @return bool
*/
public function load($oxID)
{
if ($blRet = parent::load($oxID)) {
// convert date's to international format
$this->oxremark__oxcreate = new oxField(oxRegistry::get("oxUtilsDate")->formatDBDate($this->oxremark__oxcreate->value), oxField::T_RAW);
}
return $blRet;
}
示例3: load
/**
* Loads object (newssubscription) details from DB. Returns true on success.
*
* @param string $oxId oxnewssubscribed ID
*
* @return bool
*/
public function load($oxId)
{
$blRet = parent::load($oxId);
if ($this->oxnewssubscribed__oxdboptin->value == 1) {
$this->_blWasSubscribed = true;
} elseif ($this->oxnewssubscribed__oxdboptin->value == 2) {
$this->_blWasPreSubscribed = true;
}
return $blRet;
}
示例4: load
/**
* Loads object (user) details from DB. Returns true on success.
*
* @param string $oxID User ID
*
* @return bool
*/
public function load($oxID)
{
$blRet = parent::load($oxID);
// convert date's to international format
if (isset($this->oxuser__oxcreate->value)) {
$this->oxuser__oxcreate->setValue(oxRegistry::get("oxUtilsDate")->formatDBDate($this->oxuser__oxcreate->value));
}
// change newsSubcription user id
if (isset($this->_oNewsSubscription)) {
$this->_oNewsSubscription->oxnewssubscribed__oxuserid = new oxField($oxID, oxField::T_RAW);
}
return $blRet;
}