You are here

protected function Feed::_setSubtitle in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Renderer/Feed.php \Zend\Feed\Writer\Extension\ITunes\Renderer\Feed::_setSubtitle()

Set feed subtitle

Parameters

DOMDocument $dom:

DOMElement $root:

Return value

void

1 call to Feed::_setSubtitle()
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 271

Class

Feed

Namespace

Zend\Feed\Writer\Extension\ITunes\Renderer

Code

protected function _setSubtitle(DOMDocument $dom, DOMElement $root) {
  $subtitle = $this
    ->getDataContainer()
    ->getItunesSubtitle();
  if (!$subtitle) {
    return;
  }
  $el = $dom
    ->createElement('itunes:subtitle');
  $text = $dom
    ->createTextNode($subtitle);
  $el
    ->appendChild($text);
  $root
    ->appendChild($el);
  $this->called = true;
}