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 / WellFormedWeb / Entry.php
blobcc52bc9088cf8b75db29a728f62f961cdf5c58ef
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\WellFormedWeb;
12 use Zend\Feed\Reader\Extension;
14 /**
16 class Entry extends Extension\AbstractEntry
18 /**
19 * Get the entry comment Uri
21 * @return string|null
23 public function getCommentFeedLink()
25 $name = 'commentRss';
26 if (array_key_exists($name, $this->data)) {
27 return $this->data[$name];
30 $data = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/wfw:' . $name . ')');
32 if (!$data) {
33 $data = null;
36 $this->data[$name] = $data;
38 return $data;
41 /**
42 * Register Slash namespaces
44 * @return void
46 protected function registerNamespaces()
48 $this->xpath->registerNamespace('wfw', 'http://wellformedweb.org/CommentAPI/');