You are here

public function Entry::getDescription in Zircon Profile 8.0

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

Get the entry description

Return value

string

1 call to Entry::getDescription()
Entry::getContent in vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php
Get the entry content

File

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

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Atom

Code

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