public function Subscription::deleteSubscription in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/Model/Subscription.php \Zend\Feed\PubSubHubbub\Model\Subscription::deleteSubscription()
Delete a subscription
Parameters
string $key:
Return value
bool
Overrides SubscriptionPersistenceInterface::deleteSubscription
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Model/ Subscription.php, line 106
Class
Namespace
Zend\Feed\PubSubHubbub\ModelCode
public function deleteSubscription($key) {
$result = $this->db
->select([
'id' => $key,
]);
if (count($result)) {
$this->db
->delete([
'id' => $key,
]);
return true;
}
return false;
}