protected function AbstractAtom::_setDescription in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\AbstractAtom::_setDescription()
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setDescription()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setDescription()
Set feed description
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to AbstractAtom::_setDescription()
- Source::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Atom/ Source.php - Render Atom Feed Metadata (Source element)
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Atom/ AbstractAtom.php, line 81
Class
Namespace
Zend\Feed\Writer\Renderer\Feed\AtomCode
protected function _setDescription(DOMDocument $dom, DOMElement $root) {
if (!$this
->getDataContainer()
->getDescription()) {
return;
}
$subtitle = $dom
->createElement('subtitle');
$root
->appendChild($subtitle);
$subtitle
->setAttribute('type', 'text');
$text = $dom
->createTextNode($this
->getDataContainer()
->getDescription());
$subtitle
->appendChild($text);
}