Chris@0: getData('total'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Get the entry data specified by name Chris@0: * Chris@0: * @param string $name Chris@0: * @return mixed|null Chris@0: */ Chris@0: protected function getData($name) Chris@0: { Chris@0: if (array_key_exists($name, $this->data)) { Chris@0: return $this->data[$name]; Chris@0: } Chris@0: Chris@0: $data = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/thread10:' . $name . ')'); Chris@0: Chris@12: if (! $data) { Chris@0: $data = null; Chris@0: } Chris@0: Chris@0: $this->data[$name] = $data; Chris@0: Chris@0: return $data; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Register Atom Thread Extension 1.0 namespace Chris@0: * Chris@0: * @return void Chris@0: */ Chris@0: protected function registerNamespaces() Chris@0: { Chris@0: $this->xpath->registerNamespace('thread10', 'http://purl.org/syndication/thread/1.0'); Chris@0: } Chris@0: }