本文整理汇总了PHP中Pusher::sendUsingAccountArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Pusher::sendUsingAccountArray方法的具体用法?PHP Pusher::sendUsingAccountArray怎么用?PHP Pusher::sendUsingAccountArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pusher
的用法示例。
在下文中一共展示了Pusher::sendUsingAccountArray方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pusher
function pusher()
{
IMBAuth::checkOAuth();
// pr($_POST);
if ($_POST['ids'] == "") {
die("Please insert Customer ID");
}
if ($_POST['camp_id'] == "") {
die("Please insert Campaign ID");
}
$ids = addslashes($_POST['ids']);
$ps = new PushNotCamp();
$ps->getByID(addslashes($_POST['camp_id']));
$exp = explode(",", $ids);
$arrAcc = array();
foreach ($exp as $ac) {
$arrAcc[] = trim(rtrim($ac));
}
//from acc get device ID
Pusher::sendUsingAccountArray($arrAcc, $ps, 1);
//1 for testing
}
示例2: pusher4PopUp
public static function pusher4PopUp($ids)
{
// IMBAuth::checkOAuth();
// pr($_POST);
if ($ids == "") {
die("Please insert Customer ID");
}
// if($camp_id == "")die("Please insert Campaign ID");
$ps = new PushNotPopUp();
// $arrPS = $ps->getWhere("camp_app_popup = 1 AND camp_active = 1 ORDER BY camp_id DESC LIMIT 0,1");
//berdasarkan request 27 Jan 2016, skrg bisa multiple send push not
$arrPS = $ps->getWhere("camp_app_popup = 1 AND camp_active = 1 ORDER BY camp_id DESC");
if (count($arrPS) > 0) {
foreach ($arrPS as $ps) {
// $ps = $arrPS[0];
// $exp = explode(",", $ids);
// $arrAcc = array();
// foreach ($exp as $ac) {
// $arrAcc[] = trim(rtrim($ac));
// }
//dijadikan singular...
$arrAcc = array();
$arrAcc[] = $ids;
$_POST['no_echo'] = 1;
//from acc get device ID
Pusher::sendUsingAccountArray($arrAcc, $ps, 0);
//1 for testing
}
}
}