equal
deleted
inserted
replaced
|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Mobile |
|
17 * @subpackage Zend_Mobile_Push |
|
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id$ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * Push Interface |
|
25 * |
|
26 * @category Zend |
|
27 * @package Zend_Mobile |
|
28 * @subpackage Zend_Mobile_Push |
|
29 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
|
30 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
31 * @version $Id$ |
|
32 */ |
|
33 interface Zend_Mobile_Push_Interface |
|
34 { |
|
35 /** |
|
36 * Connect to the Push Server |
|
37 * |
|
38 * @return Push |
|
39 */ |
|
40 public function connect(); |
|
41 |
|
42 /** |
|
43 * Send a Push Message |
|
44 * |
|
45 * @param Zend_Mobile_Push_Message_Interface $message |
|
46 * @return boolean |
|
47 */ |
|
48 public function send(Zend_Mobile_Push_Message_Abstract $message); |
|
49 |
|
50 /** |
|
51 * Close the Connection to the Push Server |
|
52 * |
|
53 * @return void |
|
54 */ |
|
55 public function close(); |
|
56 |
|
57 /** |
|
58 * Set Options |
|
59 * |
|
60 * @param array $options |
|
61 * @return Zend_Mobile_Push_Abstract |
|
62 */ |
|
63 public function setOptions(array $options); |
|
64 } |