You are here

public function Entry::getContent in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::getContent()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Content/Entry.php \Zend\Feed\Reader\Extension\Content\Entry::getContent()
  3. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry::getContent()
  4. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Entry.php \Zend\Feed\Reader\Extension\DublinCore\Entry::getContent()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Content/Entry.php \Zend\Feed\Reader\Extension\Content\Entry::getContent()

File

vendor/zendframework/zend-feed/src/Reader/Extension/Content/Entry.php, line 17

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Content

Code

public function getContent() {
  if ($this
    ->getType() !== Reader\Reader::TYPE_RSS_10 && $this
    ->getType() !== Reader\Reader::TYPE_RSS_090) {
    $content = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/content:encoded)');
  }
  else {
    $content = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/content:encoded)');
  }
  return $content;
}