本文整理匯總了PHP中oxBase::assign方法的典型用法代碼示例。如果您正苦於以下問題:PHP oxBase::assign方法的具體用法?PHP oxBase::assign怎麽用?PHP oxBase::assign使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類oxBase
的用法示例。
在下文中一共展示了oxBase::assign方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: assign
/**
* Calls parent::assign and assigns gb entry writer data
*
* @param array $dbRecord database record
*
* @return bool
*/
public function assign($dbRecord)
{
$blRet = parent::assign($dbRecord);
if (isset($this->oxgbentries__oxuserid) && $this->oxgbentries__oxuserid->value) {
$oDb = oxDb::getDb();
$this->oxuser__oxfname = new oxField($oDb->getOne("select oxfname from oxuser where oxid=" . $oDb->quote($this->oxgbentries__oxuserid->value)));
}
return $blRet;
}
示例2: assign
/**
* Assigns DB field values to object fields.
*
* @param string $dbRecord DB record
*/
public function assign($dbRecord)
{
parent::assign($dbRecord);
$this->_setArticleParams();
}
示例3: _assignElement
/**
* Executes assign() method on list object. This method is called in loop in oxList::selectString().
* It is if you want to execute any functionality on every list ELEMENT after it is fully loaded (assigned).
*
* @param oxBase $oListObject List object (the one derived from oxBase)
* @param array $aDbFields An array holding db field values (normally the result of oxDb::Execute())
*/
protected function _assignElement($oListObject, $aDbFields)
{
$oListObject->assign($aDbFields);
}
示例4: assign
/**
* Assigns data, stored in DB to oxorder object
*
* @param mixed $dbRecord DB record
*
* @return null
*/
public function assign($dbRecord)
{
parent::assign($dbRecord);
$oUtilsDate = oxRegistry::get("oxUtilsDate");
// convert date's to international format
$this->oxorder__oxorderdate = new oxField($oUtilsDate->formatDBDate($this->oxorder__oxorderdate->value));
$this->oxorder__oxsenddate = new oxField($oUtilsDate->formatDBDate($this->oxorder__oxsenddate->value));
}