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