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