本文整理匯總了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;
}