You are here

public function FeedsHTTPCacheItem::__get in Feeds 7.2

Magic getter.

File

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

Class

FeedsHTTPCacheItem
Class of a cached item.

Code

public function __get($member) {
  if ($member == 'data') {

    // Data is cached in a file, so when that member is requested, return the
    // file contents.
    return $this
      ->getFileContents();
  }
  return $this->{$member};
}