本文整理汇总了PHP中SC_Helper_Customer_Ex::sfGetSearchData方法的典型用法代码示例。如果您正苦于以下问题:PHP SC_Helper_Customer_Ex::sfGetSearchData方法的具体用法?PHP SC_Helper_Customer_Ex::sfGetSearchData怎么用?PHP SC_Helper_Customer_Ex::sfGetSearchData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SC_Helper_Customer_Ex
的用法示例。
在下文中一共展示了SC_Helper_Customer_Ex::sfGetSearchData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lfRegisterData
/**
* 配信内容と配信リストを書き込む
*
* @return integer 登録した行の dtb_send_history.send_id の値
*/
function lfRegisterData(&$objFormParam)
{
$objQuery =& SC_Query_Ex::getSingletonInstance();
list($linemax, $arrSendCustomer, $objNavi) = SC_Helper_Customer_Ex::sfGetSearchData($objFormParam->getHashArray(), 'All');
$send_customer_cnt = count($arrSendCustomer);
$send_id = $objQuery->nextVal('dtb_send_history_send_id');
$dtb_send_history = array();
$dtb_send_history['mail_method'] = $objFormParam->getValue('mail_method');
$dtb_send_history['subject'] = $objFormParam->getValue('subject');
$dtb_send_history['body'] = $objFormParam->getValue('body');
$dtb_send_history['start_date'] = 'CURRENT_TIMESTAMP';
$dtb_send_history['creator_id'] = $_SESSION['member_id'];
$dtb_send_history['send_count'] = $send_customer_cnt;
$dtb_send_history['search_data'] = serialize($objFormParam->getSearchArray());
$dtb_send_history['update_date'] = 'CURRENT_TIMESTAMP';
$dtb_send_history['create_date'] = 'CURRENT_TIMESTAMP';
$dtb_send_history['send_id'] = $send_id;
$objQuery->insert('dtb_send_history', $dtb_send_history);
// 「配信メールアドレス種別」に携帯メールアドレスが指定されている場合は、携帯メールアドレスに配信
$emailtype = 'email';
$searchmailtype = $objFormParam->getValue('search_mail_type');
if ($searchmailtype == 2 || $searchmailtype == 4) {
$emailtype = 'email_mobile';
}
if (is_array($arrSendCustomer)) {
foreach ($arrSendCustomer as $line) {
$dtb_send_customer = array();
$dtb_send_customer['customer_id'] = $line['customer_id'];
$dtb_send_customer['send_id'] = $send_id;
$dtb_send_customer['email'] = $line[$emailtype];
$dtb_send_customer['name'] = $line['name01'] . ' ' . $line['name02'];
$objQuery->insert('dtb_send_customer', $dtb_send_customer);
}
}
return $send_id;
}
示例2: lfDoSearch
/**
* 会員一覧を検索する処理
*
* @param array $arrParam 検索パラメーター連想配列
* @return array( integer 全体件数, mixed 会員データ一覧配列, mixed SC_PageNaviオブジェクト)
*/
public function lfDoSearch($arrParam)
{
return SC_Helper_Customer_Ex::sfGetSearchData($arrParam);
}