3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Feed\Reader\Extension\Content;
13 use Zend\Feed\Reader\Extension;
15 class Entry extends Extension\AbstractEntry
17 public function getContent()
19 if ($this->getType() !== Reader\Reader::TYPE_RSS_10
20 && $this->getType() !== Reader\Reader::TYPE_RSS_090
22 $content = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/content:encoded)');
24 $content = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/content:encoded)');
30 * Register RSS Content Module namespace
32 protected function registerNamespaces()
34 $this->xpath->registerNamespace('content', 'http://purl.org/rss/1.0/modules/content/');