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