3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 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
18 public function getContent()
20 if ($this->getType() !== Reader\Reader
::TYPE_RSS_10
21 && $this->getType() !== Reader\Reader
::TYPE_RSS_090
23 $content = $this->xpath
->evaluate('string(' . $this->getXpathPrefix() . '/content:encoded)');
25 $content = $this->xpath
->evaluate('string(' . $this->getXpathPrefix() . '/content:encoded)');
31 * Register RSS Content Module namespace
33 protected function registerNamespaces()
35 $this->xpath
->registerNamespace('content', 'http://purl.org/rss/1.0/modules/content/');