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