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 / Thread / Entry.php
blobceaee85bd573a608fbef486a30aeae76fd401f92
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\Thread;
12 use Zend\Feed\Reader\Extension;
14 /**
16 class Entry extends Extension\AbstractEntry
18 /**
19 * Get the "in-reply-to" value
21 * @return string
23 public function getInReplyTo()
25 // TODO: to be implemented
28 // TODO: Implement "replies" and "updated" constructs from standard
30 /**
31 * Get the total number of threaded responses (i.e comments)
33 * @return int|null
35 public function getCommentCount()
37 return $this->getData('total');
40 /**
41 * Get the entry data specified by name
43 * @param string $name
44 * @return mixed|null
46 protected function getData($name)
48 if (array_key_exists($name, $this->data)) {
49 return $this->data[$name];
52 $data = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/thread10:' . $name . ')');
54 if (!$data) {
55 $data = null;
58 $this->data[$name] = $data;
60 return $data;
63 /**
64 * Register Atom Thread Extension 1.0 namespace
66 * @return void
68 protected function registerNamespaces()
70 $this->xpath->registerNamespace('thread10', 'http://purl.org/syndication/thread/1.0');