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


PHP api_AContainer::DbReadKeys方法代碼示例

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


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

示例1: getSubscriptionById

 /**
  * @param int $iSubscriptionID
  *
  * @return string
  */
 public function getSubscriptionById($iSubscriptionID)
 {
     $aMap = api_AContainer::DbReadKeys(CSubscription::getStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %sawm_subscriptions WHERE %s = %d';
     return sprintf($sSql, implode(', ', $aMap), $this->prefix(), $this->escapeColumn('id_subscription'), $iSubscriptionID);
 }
開發者ID:Git-Host,項目名稱:email,代碼行數:12,代碼來源:command_creator.php

示例2: getFetchers

 /**
  * @param CAccount $oAccount
  * @return string
  */
 public function getFetchers($oAccount)
 {
     $aMap = api_AContainer::DbReadKeys(CFetcher::getStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %sawm_fetchers WHERE %s = %d';
     return sprintf($sSql, implode(', ', $aMap), $this->prefix(), $this->escapeColumn('id_acct'), $oAccount->IdAccount);
 }
開發者ID:Git-Host,項目名稱:email,代碼行數:11,代碼來源:command_creator.php

示例3: DbGetObjectSqlString

 /**
  * @param string $sWhere
  * @param string $sTableName
  * @param array $aStaticMap
  * @param object $oHelper
  *
  * @return string
  */
 public static function DbGetObjectSqlString($sWhere, $sTableName, $aStaticMap, $oHelper)
 {
     $aMap = api_AContainer::DbReadKeys($aStaticMap);
     $aMap = array_map(array($oHelper, 'EscapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %s WHERE %s';
     return sprintf($sSql, implode(', ', $aMap), $sTableName, $sWhere);
 }
開發者ID:Git-Host,項目名稱:email,代碼行數:15,代碼來源:container.php

示例4: getSocialByWhere

 /**
  * @param string $sWhere
  * @return string
  */
 protected function getSocialByWhere($sWhere)
 {
     $aMap = api_AContainer::DbReadKeys(CSocial::GetStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %sawm_social WHERE %s';
     return sprintf($sSql, implode(', ', $aMap), $this->Prefix(), $sWhere);
 }
開發者ID:BertLasker,項目名稱:Catch-design,代碼行數:11,代碼來源:command_creator.php

示例5: getAccountByWhere

 /**
  * @param string $sWhere
  * @return string
  */
 protected function getAccountByWhere($sWhere)
 {
     $aMap = api_AContainer::DbReadKeys(CTwofactorauth::getStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %stwofa_accounts WHERE %s';
     return sprintf($sSql, implode(', ', $aMap), $this->prefix(), $sWhere);
 }
開發者ID:pkdevboxy,項目名稱:webmail-lite,代碼行數:11,代碼來源:command_creator.php

示例6: GetAttachments

 /**
  * @param CHelpdeskUser $oHelpdeskUser
  * @param int $iPostId
  *
  * @return string
  */
 public function GetAttachments(CHelpdeskUser $oHelpdeskUser, CHelpdeskThread $oHelpdeskThread)
 {
     $aMap = api_AContainer::DbReadKeys(CHelpdeskAttachment::GetStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %sahd_attachments';
     $sSql = sprintf($sSql, implode(', ', $aMap), $this->Prefix());
     $aWhere = array();
     if (0 < $oHelpdeskUser->IdTenant) {
         $aWhere[] = $this->escapeColumn('id_tenant') . ' = ' . $oHelpdeskUser->IdTenant;
     }
     $aWhere[] = $this->escapeColumn('id_helpdesk_thread') . ' = ' . $oHelpdeskThread->IdHelpdeskThread;
     return $sSql . ' WHERE ' . implode(' AND ', $aWhere);
 }
開發者ID:hallnewman,項目名稱:webmail-lite,代碼行數:19,代碼來源:command_creator.php

示例7: getGroupByWhere

 /**
  * @param string $sWhere
  * @return string
  */
 protected function getGroupByWhere($sWhere)
 {
     $aMap = api_AContainer::DbReadKeys(CGroup::getStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %sawm_addr_groups WHERE %s';
     return sprintf($sSql, implode(', ', $aMap), $this->prefix(), $sWhere);
 }
開發者ID:pkdevboxy,項目名稱:webmail-lite,代碼行數:11,代碼來源:command_creator.php

示例8: _getUserByWhereQuery

 /**
  * Returns query-string for obtaining user by specified condition.
  * 
  * @param string $sWhere Specified condition.
  * 
  * @return string
  */
 protected function _getUserByWhereQuery($sWhere)
 {
     $aMap = api_AContainer::DbReadKeys(CUser::getStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %sawm_settings WHERE %s';
     return sprintf($sSql, implode(', ', $aMap), $this->prefix(), $sWhere);
 }
開發者ID:Git-Host,項目名稱:email,代碼行數:14,代碼來源:command_creator.php


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