protected function Rss::_setCopyright in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Rss.php \Zend\Feed\Writer\Renderer\Feed\Rss::_setCopyright()
Set feed copyright
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Rss::_setCopyright()
- Rss::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Rss.php - Render RSS feed
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Rss.php, line 283
Class
Namespace
Zend\Feed\Writer\Renderer\FeedCode
protected function _setCopyright(DOMDocument $dom, DOMElement $root) {
$copyright = $this
->getDataContainer()
->getCopyright();
if (!$copyright) {
return;
}
$copy = $dom
->createElement('copyright');
$root
->appendChild($copy);
$text = $dom
->createTextNode($copyright);
$copy
->appendChild($text);
}