protected function Feed::_setDuration 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::_setDuration()
Set feed cumulative duration
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Feed::_setDuration()
- 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 163
Class
Namespace
Zend\Feed\Writer\Extension\ITunes\RendererCode
protected function _setDuration(DOMDocument $dom, DOMElement $root) {
$duration = $this
->getDataContainer()
->getItunesDuration();
if (!$duration) {
return;
}
$el = $dom
->createElement('itunes:duration');
$text = $dom
->createTextNode($duration);
$el
->appendChild($text);
$root
->appendChild($el);
$this->called = true;
}