Lines Matching defs:data
60 * Converts a given {@see SimplePie} object into data to be stored
62 * @param \SimplePie\SimplePie $data
63 * @return array First item is the serialized data for storage, second item is the unique ID for this item
65 protected static function prepare_simplepie_object_for_cache($data)
67 $items = $data->get_items();
82 if (isset($data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_10]['feed'][0])) {
83 $channel =& $data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_10]['feed'][0];
84 } elseif (isset($data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_03]['feed'][0])) {
85 $channel =& $data->data['child'][\SimplePie\SimplePie::NAMESPACE_ATOM_03]['feed'][0];
86 } elseif (isset($data->data['child'][\SimplePie\SimplePie::NAMESPACE_RDF]['RDF'][0])) {
87 $channel =& $data->data['child'][\SimplePie\SimplePie::NAMESPACE_RDF]['RDF'][0];
88 } elseif (isset($data->data['child'][\SimplePie\SimplePie::NAMESPACE_RSS_20]['rss'][0]['child'][\SimplePie\SimplePie::NAMESPACE_RSS_20]['channel'][0])) {
89 $channel =& $data->data['child'][\SimplePie\SimplePie::NAMESPACE_RSS_20]['rss'][0]['child'][\SimplePie\SimplePie::NAMESPACE_RSS_20]['channel'][0];
111 if (isset($data->data['items'])) {
112 unset($data->data['items']);
114 if (isset($data->data['ordered_items'])) {
115 unset($data->data['ordered_items']);
118 return [serialize($data->data), $items_by_id];