当前位置: 首页>>代码示例>>PHP>>正文


PHP api_AContainer::DbUpdateArray方法代码示例

本文整理汇总了PHP中api_AContainer::DbUpdateArray方法的典型用法代码示例。如果您正苦于以下问题:PHP api_AContainer::DbUpdateArray方法的具体用法?PHP api_AContainer::DbUpdateArray怎么用?PHP api_AContainer::DbUpdateArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在api_AContainer的用法示例。


在下文中一共展示了api_AContainer::DbUpdateArray方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: UpdateSocial

 /**
  * @param CSocial $oSocial
  * @return string
  */
 public function UpdateSocial(CSocial $oSocial)
 {
     $aResult = api_AContainer::DbUpdateArray($oSocial, $this->oHelper);
     $sSql = 'UPDATE %sawm_social SET %s WHERE type_str = %s AND id_social = %s';
     return sprintf($sSql, $this->Prefix(), implode(', ', $aResult), $this->escapeString(strtolower($oSocial->TypeStr)), $oSocial->IdSocial);
 }
开发者ID:BertLasker,项目名称:Catch-design,代码行数:10,代码来源:command_creator.php

示例2: updateSubscription

 /**
  * @param CSubscription $oSubscription
  *
  * @return string
  */
 public function updateSubscription($oSubscription)
 {
     $aResult = api_AContainer::DbUpdateArray($oSubscription, $this->oHelper);
     $sSql = 'UPDATE %sawm_fetchers SET %s WHERE %s = %d AND %s = %d';
     return sprintf($sSql, $this->prefix(), implode(', ', $aResult), $this->escapeColumn('id_tenant'), $oSubscription->IdTenant, $this->escapeColumn('id_subscription'), $oSubscription->IdSubscription);
 }
开发者ID:Git-Host,项目名称:email,代码行数:11,代码来源:command_creator.php

示例3: UpdateAccount

 /**
  * @param CTwofactorauth $oObject
  * @return string
  */
 public function UpdateAccount(\CTwofactorauth $oObject)
 {
     $aResult = api_AContainer::DbUpdateArray($oObject, $this->oHelper);
     $sSql = 'UPDATE %stwofa_accounts SET %s WHERE auth_type = %s AND account_id = %s';
     return sprintf($sSql, $this->prefix(), implode(', ', $aResult), $this->escapeString(strtolower($oObject->AuthType)), $oObject->AccountId);
 }
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:10,代码来源:command_creator.php

示例4: UpdateCalUser

 /**
  * @param CCalUser $oCalUser
  * @return string
  */
 public function UpdateCalUser(CCalUser $oCalUser)
 {
     $aResult = api_AContainer::DbUpdateArray($oCalUser, $this->oHelper);
     $sSql = 'UPDATE %sacal_users_data SET %s WHERE settings_id = %d';
     return sprintf($sSql, $this->Prefix(), implode(', ', $aResult), $oCalUser->IdCalUser);
 }
开发者ID:BertLasker,项目名称:Catch-design,代码行数:10,代码来源:command_creator.php

示例5: updateSocial

 /**
  * @param CTenantSocials $oSocial
  *
  * @return bool
  */
 public function updateSocial(CTenantSocials $oSocial)
 {
     $aResult = api_AContainer::DbUpdateArray($oSocial, $this->oHelper);
     $sSql = 'UPDATE %sawm_tenant_socials SET %s WHERE id = %d';
     return sprintf($sSql, $this->prefix(), implode(', ', $aResult), $oSocial->Id);
 }
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:11,代码来源:command_creator.php

示例6: updateFetcher

 /**
  * @param CAccount $oAccount
  * @param CFetcher $oFetcher
  * @return string
  */
 public function updateFetcher($oAccount, $oFetcher)
 {
     $aResult = api_AContainer::DbUpdateArray($oFetcher, $this->oHelper);
     $sSql = 'UPDATE %sawm_fetchers SET %s WHERE %s = %d AND %s = %d';
     return sprintf($sSql, $this->prefix(), implode(', ', $aResult), $this->escapeColumn('id_acct'), $oAccount->IdAccount, $this->escapeColumn('id_fetcher'), $oFetcher->IdFetcher);
 }
开发者ID:Git-Host,项目名称:email,代码行数:11,代码来源:command_creator.php

示例7: UpdateThread

 /**
  * @param CHelpdeskUser $oHelpdeskUser
  * @param CHelpdeskThread $oHelpdeskThread
  * @return string
  */
 public function UpdateThread(CHelpdeskUser $oHelpdeskUser, CHelpdeskThread $oHelpdeskThread)
 {
     $aResult = api_AContainer::DbUpdateArray($oHelpdeskThread, $this->oHelper);
     $sSql = 'UPDATE %sahd_threads SET %s WHERE %s = %d AND %s = %d';
     return sprintf($sSql, $this->Prefix(), implode(', ', $aResult), $this->escapeColumn('id_tenant'), $oHelpdeskUser->IdTenant, $this->escapeColumn('id_helpdesk_thread'), $oHelpdeskThread->IdHelpdeskThread);
 }
开发者ID:hallnewman,项目名称:webmail-lite,代码行数:11,代码来源:command_creator.php

示例8: UpdateGroup

 /**
  * @param CGroup $oGroup
  * @return string
  */
 public function UpdateGroup($oGroup)
 {
     $sSql = 'UPDATE %sawm_addr_groups SET %s WHERE id_user = %d AND id_group = %d';
     return sprintf($sSql, $this->prefix(), implode(', ', api_AContainer::DbUpdateArray($oGroup, $this->oHelper)), $oGroup->IdUser, $oGroup->IdGroup);
 }
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:9,代码来源:command_creator.php

示例9: UpdateDomain

 /**
  * @param CDomain $oDomain
  * @return string
  */
 public function UpdateDomain(CDomain $oDomain)
 {
     $aResult = api_AContainer::DbUpdateArray($oDomain, $this->oHelper);
     $sSql = 'UPDATE %sawm_domains SET %s WHERE id_domain = %d';
     return sprintf($sSql, $this->Prefix(), implode(', ', $aResult), $oDomain->IdDomain);
 }
开发者ID:hallnewman,项目名称:webmail-lite,代码行数:10,代码来源:command_creator.php

示例10: UpdateTenant

 /**
  * @param CTenant $oTenant
  *
  * @return string
  */
 function UpdateTenant(CTenant $oTenant)
 {
     $aResult = api_AContainer::DbUpdateArray($oTenant, $this->oHelper);
     $sSql = 'UPDATE %sawm_tenants SET %s WHERE id_tenant = %d';
     return sprintf($sSql, $this->Prefix(), implode(', ', $aResult), $oTenant->IdTenant);
 }
开发者ID:hallnewman,项目名称:webmail-lite,代码行数:11,代码来源:command_creator.php


注:本文中的api_AContainer::DbUpdateArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。