You are here

protected function Entry::_setSubtitle in Zircon Profile 8

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

Set entry subtitle

Parameters

DOMDocument $dom:

DOMElement $root:

Return value

void

1 call to Entry::_setSubtitle()
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 168

Class

Entry

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;
}