本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}