当前位置: 首页>>代码示例>>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;未经允许,请勿转载。