/** * Find the feed icon. * * @param SimpleXMLElement $xml Feed xml * @param \PicoFeed\Parser\Feed $feed Feed object */ public function findFeedIcon(SimpleXMLElement $xml, Feed $feed) { $feed->setIcon(''); }
/** * Find the feed icon. * * @param SimpleXMLElement $xml Feed xml * @param \PicoFeed\Parser\Feed $feed Feed object */ public function findFeedIcon(SimpleXMLElement $xml, Feed $feed) { $icon = XmlParser::getXPathResult($xml, 'atom:icon', $this->namespaces) ?: XmlParser::getXPathResult($xml, 'icon'); $feed->setIcon(XmlParser::getValue($icon)); }