package Default
inherited_from \Zend\Feed\PubSubHubbub\Model\AbstractModel

 Methods

Constructor

__construct(null|\Zend\Db\TableGateway\TableGatewayInterface $tableGateway = null
Inherited

Parameters

$tableGateway

null\Zend\Db\TableGateway\TableGatewayInterface

Delete a subscription

deleteSubscription(string $key) : boolean
inherited_from \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface::deleteSubscription()

Parameters

$key

string

Returns

boolean

Get a new DateTime or the one injected for testing

getNow() : \DateTime

Returns

\DateTime

Get subscription by ID/key

getSubscription(string $key) : array
inherited_from \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface::getSubscription()

Parameters

$key

string

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

array

Determine if a subscription matching the key exists

hasSubscription(string $key) : boolean
inherited_from \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface::hasSubscription()

Parameters

$key

string

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

boolean

Set a DateTime instance for assisting with unit testing

setNow(\DateTime $now) : \Zend\Feed\PubSubHubbub\Model\Subscription

Parameters

$now

\DateTime

Returns

\Zend\Feed\PubSubHubbub\Model\Subscription

Save subscription to RDMBS

setSubscription(array $data) : boolean
inherited_from \Zend\Feed\PubSubHubbub\Model\SubscriptionPersistenceInterface::setSubscription()

Parameters

$data

array

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

boolean

 Properties

 

Zend\Db\TableGateway\TableGatewayInterface instance to host database methods

$db : \Zend\Db\TableGateway\TableGatewayInterface

Default

null
 

Common DateTime object to assist with unit testing

$now : \DateTime

Default