Zend Framework
3.0
|
Public Member Functions | |
setSubscription (array $data) | |
Save subscription to RDMBS. | |
getSubscription ($key) | |
Get subscription by ID/key. | |
hasSubscription ($key) | |
Determine if a subscription matching the key exists. | |
deleteSubscription ($key) | |
Delete a subscription. | |
getNow () | |
Get a new DateTime or the one injected for testing. | |
setNow (DateTime $now) | |
Set a DateTime instance for assisting with unit testing. | |
Public Member Functions inherited from AbstractModel | |
__construct (TableGatewayInterface $tableGateway=null) | |
Constructor. | |
Protected Attributes | |
$now | |
Protected Attributes inherited from AbstractModel | |
$db = null | |
deleteSubscription | ( | $key | ) |
Delete a subscription.
string | $key |
Implements SubscriptionPersistenceInterface.
getNow | ( | ) |
Get a new DateTime or the one injected for testing.
getSubscription | ( | $key | ) |
Get subscription by ID/key.
string | $key |
PubSubHubbub\Exception\InvalidArgumentException |
Implements SubscriptionPersistenceInterface.
hasSubscription | ( | $key | ) |
Determine if a subscription matching the key exists.
string | $key |
PubSubHubbub\Exception\InvalidArgumentException |
Implements SubscriptionPersistenceInterface.
setNow | ( | DateTime | $now | ) |
Set a DateTime instance for assisting with unit testing.
DateTime | $now |
setSubscription | ( | array | $data | ) |
Save subscription to RDMBS.
array | $data |
PubSubHubbub\Exception\InvalidArgumentException |
Implements SubscriptionPersistenceInterface.
|
protected |