equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Mobile |
16 * @package Zend_Mobile |
17 * @subpackage Zend_Mobile_Push |
17 * @subpackage Zend_Mobile_Push |
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id$ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** Zend_Http_Client **/ |
23 /** Zend_Http_Client **/ |
33 * Mpns Push |
33 * Mpns Push |
34 * |
34 * |
35 * @category Zend |
35 * @category Zend |
36 * @package Zend_Mobile |
36 * @package Zend_Mobile |
37 * @subpackage Zend_Mobile_Push |
37 * @subpackage Zend_Mobile_Push |
38 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
38 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
39 * @license http://framework.zend.com/license/new-bsd New BSD License |
39 * @license http://framework.zend.com/license/new-bsd New BSD License |
40 * @version $Id$ |
40 * @version $Id$ |
41 */ |
41 */ |
42 class Zend_Mobile_Push_Mpns extends Zend_Mobile_Push_Abstract |
42 class Zend_Mobile_Push_Mpns extends Zend_Mobile_Push_Abstract |
43 { |
43 { |
44 /** |
44 /** |
45 * Http Client |
45 * Http Client |
46 * |
46 * |
47 * @var Client |
47 * @var Zend_Http_Client |
48 */ |
48 */ |
49 protected $_httpClient; |
49 protected $_httpClient; |
50 |
50 |
51 /** |
51 /** |
52 * Get Http Client |
52 * Get Http Client |
76 } |
76 } |
77 |
77 |
78 /** |
78 /** |
79 * Send Message |
79 * Send Message |
80 * |
80 * |
81 * @param Zend_Mobile_Push_Message_Mpns $message |
81 * @param Zend_Mobile_Push_Message_Abstract $message |
|
82 * @throws Zend_Http_Client_Exception |
|
83 * @throws Zend_Mobile_Push_Exception |
|
84 * @throws Zend_Mobile_Push_Exception_DeviceQuotaExceeded |
|
85 * @throws Zend_Mobile_Push_Exception_InvalidPayload |
|
86 * @throws Zend_Mobile_Push_Exception_InvalidToken |
|
87 * @throws Zend_Mobile_Push_Exception_QuotaExceeded |
|
88 * @throws Zend_Mobile_Push_Exception_ServerUnavailable |
82 * @return boolean |
89 * @return boolean |
83 * @throws Zend_Mobile_Push_Exception |
|
84 */ |
90 */ |
85 public function send(Zend_Mobile_Push_Message_Abstract $message) |
91 public function send(Zend_Mobile_Push_Message_Abstract $message) |
86 { |
92 { |
87 if (!$message->validate()) { |
93 if (!$message->validate()) { |
88 throw new Zend_Mobile_Push_Exception('The message is not valid.'); |
94 throw new Zend_Mobile_Push_Exception('The message is not valid.'); |