You are here

public function Feed::getGenerator in Zircon Profile 8.0

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

Get the feed generator entry

Return value

string|null

File

vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php, line 192

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Atom

Code

public function getGenerator() {
  if (array_key_exists('generator', $this->data)) {
    return $this->data['generator'];
  }

  // TODO: Add uri support
  $generator = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/atom:generator)');
  if (!$generator) {
    $generator = null;
  }
  $this->data['generator'] = $generator;
  return $this->data['generator'];
}