protected function Feed::_setNewFeedUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Renderer/Feed.php \Zend\Feed\Writer\Extension\ITunes\Renderer\Feed::_setNewFeedUrl()
Set feed's new URL
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Feed::_setNewFeedUrl()
- 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 223
Class
Namespace
Zend\Feed\Writer\Extension\ITunes\RendererCode
protected function _setNewFeedUrl(DOMDocument $dom, DOMElement $root) {
$url = $this
->getDataContainer()
->getItunesNewFeedUrl();
if (!$url) {
return;
}
$el = $dom
->createElement('itunes:new-feed-url');
$text = $dom
->createTextNode($url);
$el
->appendChild($text);
$root
->appendChild($el);
$this->called = true;
}