protected function Feed::_setImage in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Renderer/Feed.php \Zend\Feed\Writer\Extension\ITunes\Renderer\Feed::_setImage()
Set feed image (icon)
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Feed::_setImage()
- Feed::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Renderer/ Feed.php - Render feed
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Renderer/ Feed.php, line 144
Class
Namespace
Zend\Feed\Writer\Extension\ITunes\RendererCode
protected function _setImage(DOMDocument $dom, DOMElement $root) {
$image = $this
->getDataContainer()
->getItunesImage();
if (!$image) {
return;
}
$el = $dom
->createElement('itunes:image');
$el
->setAttribute('href', $image);
$root
->appendChild($el);
$this->called = true;
}