Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Feed / Reader / Extension / Content / Entry.php
blob88fd850b25abf019c3874c93e50ccad2bb3b0f40
1 <?php
2 /**
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
8 */
10 namespace Zend\Feed\Reader\Extension\Content;
12 use Zend\Feed\Reader;
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
22 ) {
23 $content = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/content:encoded)');
24 } else {
25 $content = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/content:encoded)');
27 return $content;
30 /**
31 * Register RSS Content Module namespace
33 protected function registerNamespaces()
35 $this->xpath->registerNamespace('content', 'http://purl.org/rss/1.0/modules/content/');