You are here

public function Entry::getTitle in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::getTitle()
  2. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry::getTitle()
  3. 8 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Entry.php \Zend\Feed\Reader\Extension\DublinCore\Entry::getTitle()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry::getTitle()

Get the entry title

Return value

string

1 call to Entry::getTitle()
Entry::getId in vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php
Get the entry ID

File

vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php, line 383

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Atom

Code

public function getTitle() {
  if (array_key_exists('title', $this->data)) {
    return $this->data['title'];
  }
  $title = $this
    ->getXpath()
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/atom:title)');
  if (!$title) {
    $title = null;
  }
  $this->data['title'] = $title;
  return $this->data['title'];
}