Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Feed / Reader / Extension / Podcast / Entry.php
blob584fd375d2c96c9685f0ef5fe0327ea114813c47
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Feed\Reader\Extension\Podcast;
12 use Zend\Feed\Reader\Extension;
14 /**
16 class Entry extends Extension\AbstractEntry
18 /**
19 * Get the entry author
21 * @return string
23 public function getCastAuthor()
25 if (isset($this->data['author'])) {
26 return $this->data['author'];
29 $author = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:author)');
31 if (!$author) {
32 $author = null;
35 $this->data['author'] = $author;
37 return $this->data['author'];
40 /**
41 * Get the entry block
43 * @return string
45 public function getBlock()
47 if (isset($this->data['block'])) {
48 return $this->data['block'];
51 $block = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:block)');
53 if (!$block) {
54 $block = null;
57 $this->data['block'] = $block;
59 return $this->data['block'];
62 /**
63 * Get the entry duration
65 * @return string
67 public function getDuration()
69 if (isset($this->data['duration'])) {
70 return $this->data['duration'];
73 $duration = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:duration)');
75 if (!$duration) {
76 $duration = null;
79 $this->data['duration'] = $duration;
81 return $this->data['duration'];
84 /**
85 * Get the entry explicit
87 * @return string
89 public function getExplicit()
91 if (isset($this->data['explicit'])) {
92 return $this->data['explicit'];
95 $explicit = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:explicit)');
97 if (!$explicit) {
98 $explicit = null;
101 $this->data['explicit'] = $explicit;
103 return $this->data['explicit'];
107 * Get the entry keywords
109 * @return string
111 public function getKeywords()
113 if (isset($this->data['keywords'])) {
114 return $this->data['keywords'];
117 $keywords = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:keywords)');
119 if (!$keywords) {
120 $keywords = null;
123 $this->data['keywords'] = $keywords;
125 return $this->data['keywords'];
129 * Get the entry subtitle
131 * @return string
133 public function getSubtitle()
135 if (isset($this->data['subtitle'])) {
136 return $this->data['subtitle'];
139 $subtitle = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:subtitle)');
141 if (!$subtitle) {
142 $subtitle = null;
145 $this->data['subtitle'] = $subtitle;
147 return $this->data['subtitle'];
151 * Get the entry summary
153 * @return string
155 public function getSummary()
157 if (isset($this->data['summary'])) {
158 return $this->data['summary'];
161 $summary = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:summary)');
163 if (!$summary) {
164 $summary = null;
167 $this->data['summary'] = $summary;
169 return $this->data['summary'];
173 * Register iTunes namespace
176 protected function registerNamespaces()
178 $this->xpath->registerNamespace('itunes', 'http://www.itunes.com/dtds/podcast-1.0.dtd');