當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。