public function FeedsHTTPCacheItem::getFileContents in Feeds 7.2
Gets the cached file from the file system.
Return value
string|null The file's contents, if the file exists. NULL otherwise.
1 call to FeedsHTTPCacheItem::getFileContents()
- FeedsHTTPCacheItem::__get in includes/
FeedsHTTPCacheItem.inc - Magic getter.
File
- includes/
FeedsHTTPCacheItem.inc, line 140 - Contains FeedsHTTPCacheItem class.
Class
- FeedsHTTPCacheItem
- Class of a cached item.
Code
public function getFileContents() {
if (file_exists($this->file_path)) {
return file_get_contents($this->file_path);
}
}