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\Thread;
12 use Zend\Feed\Reader\Extension;
16 class Entry extends Extension\AbstractEntry
19 * Get the "in-reply-to" value
23 public function getInReplyTo()
25 // TODO: to be implemented
28 // TODO: Implement "replies" and "updated" constructs from standard
31 * Get the total number of threaded responses (i.e comments)
35 public function getCommentCount()
37 return $this->getData('total');
41 * Get the entry data specified by name
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 . ')');
58 $this->data[$name] = $data;
64 * Register Atom Thread Extension 1.0 namespace
68 protected function registerNamespaces()
70 $this->xpath->registerNamespace('thread10', 'http://purl.org/syndication/thread/1.0');