You are here

public function PuSHSubscription::save in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsHTTPFetcher.inc \PuSHSubscription::save()
  2. 7.2 plugins/FeedsHTTPFetcher.inc \PuSHSubscription::save()

Save a subscription.

Overrides PuSHSubscriptionInterface::save

File

plugins/FeedsHTTPFetcher.inc, line 250

Class

PuSHSubscription
Implement a PuSHSubscriptionInterface.

Code

public function save() {
  $this->timestamp = time();
  $this
    ->delete($this->domain, $this->subscriber_id);
  drupal_write_record('feeds_push_subscriptions', $this);
}