Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Feed / PubSubHubbub / Model / SubscriptionPersistenceInterface.php
blob717591b0fc1a4f909c0ce096ef6f2535b20ef57a
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Feed\PubSubHubbub\Model;
12 interface SubscriptionPersistenceInterface
15 /**
16 * Save subscription to RDMBS
18 * @param array $data The key must be stored here as a $data['id'] entry
19 * @return bool
21 public function setSubscription(array $data);
23 /**
24 * Get subscription by ID/key
26 * @param string $key
27 * @return array
29 public function getSubscription($key);
31 /**
32 * Determine if a subscription matching the key exists
34 * @param string $key
35 * @return bool
37 public function hasSubscription($key);
39 /**
40 * Delete a subscription
42 * @param string $key
43 * @return bool
45 public function deleteSubscription($key);