function messages($args) { list($id) = $args; $nn = new PushNotCampCaps(); $nn->getByID($id); self::templateAppear($nn); }
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 PushNotCampCaps(); $ps->getByID(addslashes($_POST['camp_id'])); pr($ps); //from acc get device ID PusherCaps::sendUsingArrayAcc($ids, $ps, 1); //1 for testing }