You are here

class Entry in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry
  2. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Content/Entry.php \Zend\Feed\Reader\Extension\Content\Entry
  3. 8 vendor/zendframework/zend-feed/src/Reader/Extension/WellFormedWeb/Entry.php \Zend\Feed\Reader\Extension\WellFormedWeb\Entry
  4. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry
  5. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php \Zend\Feed\Reader\Extension\Podcast\Entry
  6. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Thread/Entry.php \Zend\Feed\Reader\Extension\Thread\Entry
  7. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Slash/Entry.php \Zend\Feed\Reader\Extension\Slash\Entry
  8. 8 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Entry.php \Zend\Feed\Reader\Extension\DublinCore\Entry
  9. 8 vendor/zendframework/zend-feed/src/Reader/Extension/CreativeCommons/Entry.php \Zend\Feed\Reader\Extension\CreativeCommons\Entry
  10. 8 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Entry.php \Zend\Feed\Writer\Extension\ITunes\Entry
  11. 8 vendor/zendframework/zend-feed/src/Writer/Extension/Content/Renderer/Entry.php \Zend\Feed\Writer\Extension\Content\Renderer\Entry
  12. 8 vendor/zendframework/zend-feed/src/Writer/Extension/Threading/Renderer/Entry.php \Zend\Feed\Writer\Extension\Threading\Renderer\Entry
  13. 8 vendor/zendframework/zend-feed/src/Writer/Extension/WellFormedWeb/Renderer/Entry.php \Zend\Feed\Writer\Extension\WellFormedWeb\Renderer\Entry
  14. 8 vendor/zendframework/zend-feed/src/Writer/Extension/Slash/Renderer/Entry.php \Zend\Feed\Writer\Extension\Slash\Renderer\Entry
  15. 8 vendor/zendframework/zend-feed/src/Writer/Extension/DublinCore/Renderer/Entry.php \Zend\Feed\Writer\Extension\DublinCore\Renderer\Entry
  16. 8 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Renderer/Entry.php \Zend\Feed\Writer\Extension\ITunes\Renderer\Entry
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php \Zend\Feed\Reader\Extension\Podcast\Entry

Hierarchy

  • class \Zend\Feed\Reader\Extension\Podcast\Entry extends \Extension\AbstractEntry

Expanded class hierarchy of Entry

2 string references to 'Entry'
core.services.yml in core/core.services.yml
core/core.services.yml
ExtensionPluginManager::validatePlugin in vendor/zendframework/zend-feed/src/Writer/ExtensionPluginManager.php
Validate the plugin
1 service uses Entry
feed.reader.podcastentry in core/core.services.yml
Zend\Feed\Reader\Extension\Podcast\Entry

File

vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php, line 16

Namespace

Zend\Feed\Reader\Extension\Podcast
View source
class Entry extends Extension\AbstractEntry {

  /**
   * Get the entry author
   *
   * @return string
   */
  public function getCastAuthor() {
    if (isset($this->data['author'])) {
      return $this->data['author'];
    }
    $author = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/itunes:author)');
    if (!$author) {
      $author = null;
    }
    $this->data['author'] = $author;
    return $this->data['author'];
  }

  /**
   * Get the entry block
   *
   * @return string
   */
  public function getBlock() {
    if (isset($this->data['block'])) {
      return $this->data['block'];
    }
    $block = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/itunes:block)');
    if (!$block) {
      $block = null;
    }
    $this->data['block'] = $block;
    return $this->data['block'];
  }

  /**
   * Get the entry duration
   *
   * @return string
   */
  public function getDuration() {
    if (isset($this->data['duration'])) {
      return $this->data['duration'];
    }
    $duration = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/itunes:duration)');
    if (!$duration) {
      $duration = null;
    }
    $this->data['duration'] = $duration;
    return $this->data['duration'];
  }

  /**
   * Get the entry explicit
   *
   * @return string
   */
  public function getExplicit() {
    if (isset($this->data['explicit'])) {
      return $this->data['explicit'];
    }
    $explicit = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/itunes:explicit)');
    if (!$explicit) {
      $explicit = null;
    }
    $this->data['explicit'] = $explicit;
    return $this->data['explicit'];
  }

  /**
   * Get the entry keywords
   *
   * @return string
   */
  public function getKeywords() {
    if (isset($this->data['keywords'])) {
      return $this->data['keywords'];
    }
    $keywords = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/itunes:keywords)');
    if (!$keywords) {
      $keywords = null;
    }
    $this->data['keywords'] = $keywords;
    return $this->data['keywords'];
  }

  /**
   * Get the entry subtitle
   *
   * @return string
   */
  public function getSubtitle() {
    if (isset($this->data['subtitle'])) {
      return $this->data['subtitle'];
    }
    $subtitle = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/itunes:subtitle)');
    if (!$subtitle) {
      $subtitle = null;
    }
    $this->data['subtitle'] = $subtitle;
    return $this->data['subtitle'];
  }

  /**
   * Get the entry summary
   *
   * @return string
   */
  public function getSummary() {
    if (isset($this->data['summary'])) {
      return $this->data['summary'];
    }
    $summary = $this->xpath
      ->evaluate('string(' . $this
      ->getXpathPrefix() . '/itunes:summary)');
    if (!$summary) {
      $summary = null;
    }
    $this->data['summary'] = $summary;
    return $this->data['summary'];
  }

  /**
   * Register iTunes namespace
   *
   */
  protected function registerNamespaces() {
    $this->xpath
      ->registerNamespace('itunes', 'http://www.itunes.com/dtds/podcast-1.0.dtd');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Entry::getBlock public function Get the entry block
Entry::getCastAuthor public function Get the entry author
Entry::getDuration public function Get the entry duration
Entry::getExplicit public function Get the entry explicit
Entry::getKeywords public function Get the entry keywords
Entry::getSubtitle public function Get the entry subtitle
Entry::getSummary public function Get the entry summary
Entry::registerNamespaces protected function Register iTunes namespace