本文整理汇总了PHP中SMS::sendSms方法的典型用法代码示例。如果您正苦于以下问题:PHP SMS::sendSms方法的具体用法?PHP SMS::sendSms怎么用?PHP SMS::sendSms使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SMS
的用法示例。
在下文中一共展示了SMS::sendSms方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processFreeReg
public function processFreeReg($post, $request, $server, $cookie)
{
if (isset($post) && isset($server) && isset($request) && $server['REQUEST_METHOD'] == 'POST') {
$db = new DBHandler();
$db->connect();
// Datas
$u = new Utility();
$coupon = $db->retrieveLeadLastId() . $u->generateCode();
$request = array_merge($request, $cookie);
$branch = isset($request['tnfbranch']) ? $request['tnfbranch'] : $request['branch'];
$request['txn_id'] = $u->generateTransactionReceipt($branch, $coupon);
$params = $u->processFreeData($request);
$params['couponCode'] = $coupon;
// Items
$items = $u->processFreeItems($request);
// End of Datas
$ss = new SpreadsheetHandler();
$duplicate = $ss->isEntryDuplicate($params['txnId']);
if (!$duplicate) {
$ss->addLeadToDocs($params);
$ss->addPurchaseRegisterToDocs($items, $params);
}
$db->insertFreeLead($params, $items);
$analytics = new Analytics();
$analytics->ga($params, $items);
$userfname = isset($request['userfname']) ? $request['userfname'] : "";
$userlname = isset($request['userlname']) ? $request['userlname'] : "";
$logparams = array("action" => "Special Rates", "module" => "TNF Microsite " . $branch, "content" => $userfname . " " . $userlname . " from " . $branch . " added a lead from the free registration promo with promo code " . $coupon, 'ip' => $server['REMOTE_ADDR']);
$db->updateLogs(0, $logparams, $userfname, $userlname);
$mail = new MailerHandler();
$mail->sendMail($params);
$sms = new SMS();
$sms->sendSms($params['contact'], $params['txnId']);
$bm = new BenchmarkHandler();
$bm->addOnlineLeadToBenchmark($params);
return $params;
} else {
return false;
}
}