You are here

public function FeedsHTTPCacheItem::saveResponseData in Feeds 7.2

Writes data to a file.

Parameters

object $response: The HTTP Response object that contains the data.

1 call to FeedsHTTPCacheItem::saveResponseData()
FeedsHTTPCacheItem::__construct in includes/FeedsHTTPCacheItem.inc
FeedsHTTPCacheItem object constructor.

File

includes/FeedsHTTPCacheItem.inc, line 152
Contains FeedsHTTPCacheItem class.

Class

FeedsHTTPCacheItem
Class of a cached item.

Code

public function saveResponseData($response) {
  if (isset($response->data)) {

    // Get cache object, this object knows where to save the file.
    $filename = $this
      ->getCacheObject()
      ->saveFile($this->cid, $response);
    $this
      ->setFilePath($filename);
  }
}