category Zend
package Zend_Feed_Pubsubhubbub
subpackage Entity

 Methods

Constructor

__construct(\Zend\Db\TableGateway\TableGatewayInterface $tableGateway) 
Inherited

inherited_from \Zend\Feed\PubSubHubbub\Model\AbstractModel::__construct()

Parameters

Delete a subscription

deleteSubscription(string $key) : bool

Parameters

$key

string

Returns

bool

Get a new DateTime or the one injected for testing

getNow() : \DateTime

Returns

Get subscription by ID/key

getSubscription(string $key) : array

Parameters

$key

string

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

array

Determine if a subscription matching the key exists

hasSubscription(string $key) : bool

Parameters

$key

string

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

bool

Set a DateTime instance for assisting with unit testing

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

Save subscription to RDMBS

setSubscription(array $data) : bool

Parameters

$data

array

Exceptions

\Zend\Feed\PubSubHubbub\Exception\InvalidArgumentException

Returns

bool

 Properties

 

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

$db : \Zend\Db\TableGateway\TableGatewayInterface
Inherited

inherited_from \Zend\Feed\PubSubHubbub\Model\AbstractModel::$$db
 

Common DateTime object to assist with unit testing

$now : \DateTime