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


PHP api_AContainer::DbInsertArrays方法代碼示例

本文整理匯總了PHP中api_AContainer::DbInsertArrays方法的典型用法代碼示例。如果您正苦於以下問題:PHP api_AContainer::DbInsertArrays方法的具體用法?PHP api_AContainer::DbInsertArrays怎麽用?PHP api_AContainer::DbInsertArrays使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在api_AContainer的用法示例。


在下文中一共展示了api_AContainer::DbInsertArrays方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CreateAccount

 /**
  * @param CTwofactorauth $oObject
  * @return string
  */
 public function CreateAccount(\CTwofactorauth $oObject)
 {
     $aResults = api_AContainer::DbInsertArrays($oObject, $this->oHelper);
     if ($aResults[0] && $aResults[1]) {
         $sSql = 'INSERT INTO %stwofa_accounts ( %s ) VALUES ( %s )';
         return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
     }
     return '';
 }
開發者ID:pkdevboxy,項目名稱:webmail-lite,代碼行數:13,代碼來源:command_creator.php

示例2: CreateSocial

 /**
  * @param CSocial $oSocial
  * @return string
  */
 public function CreateSocial(CSocial $oSocial)
 {
     $aResults = api_AContainer::DbInsertArrays($oSocial, $this->oHelper);
     if ($aResults[0] && $aResults[1]) {
         $sSql = 'INSERT INTO %sawm_social ( %s ) VALUES ( %s )';
         return sprintf($sSql, $this->Prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
     }
     return '';
 }
開發者ID:BertLasker,項目名稱:Catch-design,代碼行數:13,代碼來源:command_creator.php

示例3: createSubscription

 /**
  * @param CSubscription $oSubscription
  *
  * @return string
  */
 public function createSubscription($oSubscription)
 {
     $aResults = api_AContainer::DbInsertArrays($oSubscription, $this->oHelper);
     if ($aResults[0] && $aResults[1]) {
         $sSql = 'INSERT INTO %sawm_subscriptions ( %s ) VALUES ( %s )';
         return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
     }
     return '';
 }
開發者ID:Git-Host,項目名稱:email,代碼行數:14,代碼來源:command_creator.php

示例4: createFetcher

 /**
  * @param CAccount $oAccount
  * @param CFetcher $oFetcher
  * @return string
  */
 public function createFetcher($oAccount, $oFetcher)
 {
     $aResults = api_AContainer::DbInsertArrays($oFetcher, $this->oHelper);
     if ($aResults[0] && $aResults[1]) {
         $sSql = 'INSERT INTO %sawm_fetchers ( %s ) VALUES ( %s )';
         return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
     }
     return '';
 }
開發者ID:Git-Host,項目名稱:email,代碼行數:14,代碼來源:command_creator.php

示例5: createUserQuery

 /**
  * Returns query-string for creating user settings and data in awm_settings table.
  * 
  * @param CUser $oUser CUser object.
  * 
  * @return string
  */
 public function createUserQuery(CUser $oUser)
 {
     $aResults = api_AContainer::DbInsertArrays($oUser, $this->oHelper);
     if ($aResults[0] && $aResults[1]) {
         $sSql = 'INSERT INTO %sawm_settings ( %s ) VALUES ( %s )';
         return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
     }
     return '';
 }
開發者ID:Git-Host,項目名稱:email,代碼行數:16,代碼來源:command_creator.php

示例6: CreatePost

 /**
  * @param CHelpdeskUser $oHelpdeskUser
  * @param CHelpdeskPost $oHelpdeskPost
  * @return string
  */
 public function CreatePost(CHelpdeskUser $oHelpdeskUser, CHelpdeskPost $oHelpdeskPost)
 {
     $aResults = api_AContainer::DbInsertArrays($oHelpdeskPost, $this->oHelper);
     if (!empty($aResults[0]) && !empty($aResults[1])) {
         $sSql = 'INSERT INTO %sahd_posts ( %s ) VALUES ( %s )';
         return sprintf($sSql, $this->Prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
     }
     return '';
 }
開發者ID:hallnewman,項目名稱:webmail-lite,代碼行數:14,代碼來源:command_creator.php

示例7: CreateGroup

 /**
  * @param CGroup $oGroup
  * @return string
  */
 public function CreateGroup(CGroup $oGroup)
 {
     $aResults = api_AContainer::DbInsertArrays($oGroup, $this->oHelper);
     if ($aResults[0] && $aResults[1]) {
         $sSql = 'INSERT INTO %sawm_addr_groups ( %s ) VALUES ( %s )';
         return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
     }
     return '';
 }
開發者ID:pkdevboxy,項目名稱:webmail-lite,代碼行數:13,代碼來源:command_creator.php


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