You are here

public function Entry::getBlock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php \Zend\Feed\Reader\Extension\Podcast\Entry::getBlock()

Get the entry block

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php, line 45

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

public function getBlock() {
  if (isset($this->data['block'])) {
    return $this->data['block'];
  }
  $block = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/itunes:block)');
  if (!$block) {
    $block = null;
  }
  $this->data['block'] = $block;
  return $this->data['block'];
}