protected function Atom::_setDescription in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Atom.php \Zend\Feed\Writer\Renderer\Entry\Atom::_setDescription()
Set entry description
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Atom::_setDescription()
- Atom::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Atom.php - Render atom entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Atom.php, line 101
Class
Namespace
Zend\Feed\Writer\Renderer\EntryCode
protected function _setDescription(DOMDocument $dom, DOMElement $root) {
if (!$this
->getDataContainer()
->getDescription()) {
return;
// unless src content or base64
}
$subtitle = $dom
->createElement('summary');
$root
->appendChild($subtitle);
$subtitle
->setAttribute('type', 'html');
$cdata = $dom
->createCDATASection($this
->getDataContainer()
->getDescription());
$subtitle
->appendChild($cdata);
}