當前位置: 首頁>>代碼示例>>PHP>>正文


PHP oxBase::assign方法代碼示例

本文整理匯總了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;
 }
開發者ID:JulianaSchuster,項目名稱:oxid-frontend,代碼行數:16,代碼來源:oxgbentry.php

示例2: assign

 /**
  * Assigns DB field values to object fields.
  *
  * @param string $dbRecord DB record
  */
 public function assign($dbRecord)
 {
     parent::assign($dbRecord);
     $this->_setArticleParams();
 }
開發者ID:Alpha-Sys,項目名稱:oxideshop_ce,代碼行數:10,代碼來源:OrderArticle.php

示例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);
 }
開發者ID:Crease29,項目名稱:oxideshop_ce,代碼行數:11,代碼來源:oxlist.php

示例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));
 }
開發者ID:Alpha-Sys,項目名稱:oxideshop_ce,代碼行數:15,代碼來源:Order.php


注:本文中的oxBase::assign方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。