protected function Entry::_setAuthors in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Writer/Extension/DublinCore/Renderer/Entry.php \Zend\Feed\Writer\Extension\DublinCore\Renderer\Entry::_setAuthors()
- 8.0 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Renderer/Entry.php \Zend\Feed\Writer\Extension\ITunes\Renderer\Entry::_setAuthors()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Renderer/Entry.php \Zend\Feed\Writer\Extension\ITunes\Renderer\Entry::_setAuthors()
Set entry authors
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Entry::_setAuthors()
- Entry::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Renderer/ Entry.php - Render entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Renderer/ Entry.php, line 66
Class
Namespace
Zend\Feed\Writer\Extension\ITunes\RendererCode
protected function _setAuthors(DOMDocument $dom, DOMElement $root) {
$authors = $this
->getDataContainer()
->getItunesAuthors();
if (!$authors || empty($authors)) {
return;
}
foreach ($authors as $author) {
$el = $dom
->createElement('itunes:author');
$text = $dom
->createTextNode($author);
$el
->appendChild($text);
$root
->appendChild($el);
$this->called = true;
}
}