You are here

public function Subscription::deleteSubscription in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

Subscription

Namespace

Zend\Feed\PubSubHubbub\Model

Code

public function deleteSubscription($key) {
  $result = $this->db
    ->select([
    'id' => $key,
  ]);
  if (count($result)) {
    $this->db
      ->delete([
      'id' => $key,
    ]);
    return true;
  }
  return false;
}