Lines Matching refs:data
49 * Caches data to the filesystem
91 * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
102 * Save data to the cache
104 * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
107 public function save($data)
110 if ($data instanceof \SimplePie\SimplePie) {
111 $data = $data->data;
114 $data = serialize($data);
115 return (bool) file_put_contents($this->name, $data);
121 * Retrieve the data saved to the cache
123 * @return array Data for SimplePie::$data