10 defined(
'JPATH_PLATFORM') or die;
38 protected function handleAuthor(
JFeed $feed, SimpleXMLElement $el)
41 $feed->
setAuthor((
string) $el->name, (
string) $el->email, (
string) $el->uri);
54 protected function handleContributor(
JFeed $feed, SimpleXMLElement $el)
56 $feed->
addContributor((
string) $el->name, (
string) $el->email, (
string) $el->uri);
69 protected function handleGenerator(
JFeed $feed, SimpleXMLElement $el)
71 $feed->generator = (string) $el;
84 protected function handleId(
JFeed $feed, SimpleXMLElement $el)
86 $feed->uri = (string) $el;
99 protected function handleLink(
JFeed $feed, SimpleXMLElement $el)
102 $link->uri = (string) $el[
'href'];
103 $link->language = (string) $el[
'hreflang'];
104 $link->length = (int) $el[
'length'];
105 $link->relation = (string) $el[
'rel'];
106 $link->title = (string) $el[
'title'];
107 $link->type = (string) $el[
'type'];
122 protected function handleRights(
JFeed $feed, SimpleXMLElement $el)
124 $feed->copyright = (string) $el;
137 protected function handleSubtitle(
JFeed $feed, SimpleXMLElement $el)
139 $feed->description = (string) $el;
152 protected function handleTitle(
JFeed $feed, SimpleXMLElement $el)
154 $feed->title = (string) $el;
167 protected function handleUpdated(
JFeed $feed, SimpleXMLElement $el)
169 $feed->updatedDate = (string) $el;
180 protected function initialise()
183 $this->version = ($this->stream->getAttribute(
'version') ==
'0.3') ?
'0.3' :
'1.0';
186 $this->moveToNextElement();
199 protected function processFeedEntry(
JFeedEntry $entry, SimpleXMLElement $el)
201 $entry->uri = (string) $el->id;
202 $entry->title = (
string) $el->title;
203 $entry->updatedDate = (string) $el->updated;
204 $entry->content = (
string) $el->summary;