本文整理汇总了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));
}