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_Feed_Pubsubhubbub |
16 * @package Zend_Feed_Pubsubhubbub |
17 * @subpackage Entity |
17 * @subpackage Entity |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 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: SubscriptionInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $ |
20 * @version $Id: SubscriptionInterface.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * @category Zend |
24 * @category Zend |
25 * @package Zend_Feed_Pubsubhubbub |
25 * @package Zend_Feed_Pubsubhubbub |
26 * @subpackage Entity |
26 * @subpackage Entity |
27 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
27 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
29 */ |
29 */ |
30 interface Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface |
30 interface Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface |
31 { |
31 { |
32 |
32 |
33 /** |
33 /** |
34 * Save subscription to RDMBS |
34 * Save subscription to RDMBS |
35 * |
35 * |
36 * @param array $data The key must be stored here as a $data['id'] entry |
36 * @param array $data The key must be stored here as a $data['id'] entry |
37 * @return bool |
37 * @return bool |
38 */ |
38 */ |
39 public function setSubscription(array $data); |
39 public function setSubscription(array $data); |
40 |
40 |
41 /** |
41 /** |
42 * Get subscription by ID/key |
42 * Get subscription by ID/key |
43 * |
43 * |
44 * @param string $key |
44 * @param string $key |
45 * @return array |
45 * @return array |
46 */ |
46 */ |
47 public function getSubscription($key); |
47 public function getSubscription($key); |
48 |
48 |
49 /** |
49 /** |
50 * Determine if a subscription matching the key exists |
50 * Determine if a subscription matching the key exists |
51 * |
51 * |
52 * @param string $key |
52 * @param string $key |
53 * @return bool |
53 * @return bool |
54 */ |
54 */ |
55 public function hasSubscription($key); |
55 public function hasSubscription($key); |
56 |
56 |
57 /** |
57 /** |
58 * Delete a subscription |
58 * Delete a subscription |
59 * |
59 * |
60 * @param string $key |
60 * @param string $key |
61 * @return bool |
61 * @return bool |
62 */ |
62 */ |
63 public function deleteSubscription($key); |
63 public function deleteSubscription($key); |
64 |
64 |
65 } |
65 } |