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
Get subscription by ID/key
getSubscription(string $key) : array
Parameters
$key
string
Exceptions
Returns
array
Determine if a subscription matching the key exists
hasSubscription(string $key) : bool
Parameters
$key
string
Exceptions
Returns
bool
Save subscription to RDMBS
setSubscription(array $data) : bool
Parameters
$data
array
Exceptions
Returns
bool
Properties
Common DateTime object to assist with unit testing
$now : \DateTime