You are here

protected function Entry::getData in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Thread/Entry.php \Zend\Feed\Reader\Extension\Thread\Entry::getData()
  2. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Slash/Entry.php \Zend\Feed\Reader\Extension\Slash\Entry::getData()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Thread/Entry.php \Zend\Feed\Reader\Extension\Thread\Entry::getData()

Get the entry data specified by name

Parameters

string $name:

Return value

mixed|null

1 call to Entry::getData()
Entry::getCommentCount in vendor/zendframework/zend-feed/src/Reader/Extension/Thread/Entry.php
Get the total number of threaded responses (i.e comments)

File

vendor/zendframework/zend-feed/src/Reader/Extension/Thread/Entry.php, line 46

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Thread

Code

protected function getData($name) {
  if (array_key_exists($name, $this->data)) {
    return $this->data[$name];
  }
  $data = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/thread10:' . $name . ')');
  if (!$data) {
    $data = null;
  }
  $this->data[$name] = $data;
  return $data;
}