/** * 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; }
/** * Assigns DB field values to object fields. * * @param string $dbRecord DB record */ public function assign($dbRecord) { parent::assign($dbRecord); $this->_setArticleParams(); }
/** * 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); }
/** * 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)); }