You are here

private function Feed::getData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php \Zend\Feed\Reader\Extension\Syndication\Feed::getData()

Get the entry data specified by name

Parameters

string $name:

string $type:

Return value

mixed|null

4 calls to Feed::getData()
Feed::getUpdateBase in vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php
Get update base
Feed::getUpdateFrequency in vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php
Get update frequency
Feed::getUpdateFrequencyAsTicks in vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php
Get update frequency as ticks
Feed::getUpdatePeriod in vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php
Get update period

File

vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php, line 125

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Syndication

Code

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