本文整理汇总了PHP中api_AContainer::DbInsertArrays方法的典型用法代码示例。如果您正苦于以下问题:PHP api_AContainer::DbInsertArrays方法的具体用法?PHP api_AContainer::DbInsertArrays怎么用?PHP api_AContainer::DbInsertArrays使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类api_AContainer
的用法示例。
在下文中一共展示了api_AContainer::DbInsertArrays方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CreateAccount
/**
* @param CTwofactorauth $oObject
* @return string
*/
public function CreateAccount(\CTwofactorauth $oObject)
{
$aResults = api_AContainer::DbInsertArrays($oObject, $this->oHelper);
if ($aResults[0] && $aResults[1]) {
$sSql = 'INSERT INTO %stwofa_accounts ( %s ) VALUES ( %s )';
return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
}
return '';
}
示例2: CreateSocial
/**
* @param CSocial $oSocial
* @return string
*/
public function CreateSocial(CSocial $oSocial)
{
$aResults = api_AContainer::DbInsertArrays($oSocial, $this->oHelper);
if ($aResults[0] && $aResults[1]) {
$sSql = 'INSERT INTO %sawm_social ( %s ) VALUES ( %s )';
return sprintf($sSql, $this->Prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
}
return '';
}
示例3: createSubscription
/**
* @param CSubscription $oSubscription
*
* @return string
*/
public function createSubscription($oSubscription)
{
$aResults = api_AContainer::DbInsertArrays($oSubscription, $this->oHelper);
if ($aResults[0] && $aResults[1]) {
$sSql = 'INSERT INTO %sawm_subscriptions ( %s ) VALUES ( %s )';
return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
}
return '';
}
示例4: createFetcher
/**
* @param CAccount $oAccount
* @param CFetcher $oFetcher
* @return string
*/
public function createFetcher($oAccount, $oFetcher)
{
$aResults = api_AContainer::DbInsertArrays($oFetcher, $this->oHelper);
if ($aResults[0] && $aResults[1]) {
$sSql = 'INSERT INTO %sawm_fetchers ( %s ) VALUES ( %s )';
return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
}
return '';
}
示例5: createUserQuery
/**
* Returns query-string for creating user settings and data in awm_settings table.
*
* @param CUser $oUser CUser object.
*
* @return string
*/
public function createUserQuery(CUser $oUser)
{
$aResults = api_AContainer::DbInsertArrays($oUser, $this->oHelper);
if ($aResults[0] && $aResults[1]) {
$sSql = 'INSERT INTO %sawm_settings ( %s ) VALUES ( %s )';
return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
}
return '';
}
示例6: CreatePost
/**
* @param CHelpdeskUser $oHelpdeskUser
* @param CHelpdeskPost $oHelpdeskPost
* @return string
*/
public function CreatePost(CHelpdeskUser $oHelpdeskUser, CHelpdeskPost $oHelpdeskPost)
{
$aResults = api_AContainer::DbInsertArrays($oHelpdeskPost, $this->oHelper);
if (!empty($aResults[0]) && !empty($aResults[1])) {
$sSql = 'INSERT INTO %sahd_posts ( %s ) VALUES ( %s )';
return sprintf($sSql, $this->Prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
}
return '';
}
示例7: CreateGroup
/**
* @param CGroup $oGroup
* @return string
*/
public function CreateGroup(CGroup $oGroup)
{
$aResults = api_AContainer::DbInsertArrays($oGroup, $this->oHelper);
if ($aResults[0] && $aResults[1]) {
$sSql = 'INSERT INTO %sawm_addr_groups ( %s ) VALUES ( %s )';
return sprintf($sSql, $this->prefix(), implode(', ', $aResults[0]), implode(', ', $aResults[1]));
}
return '';
}