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