|
Revision 2, 1.0 kB
(checked in by fabien, 6 years ago)
|
initial import
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
class sfRssUserland091Feed extends sfRssFeed |
|---|
| 19 |
{ |
|---|
| 20 |
protected function getFeedElements() |
|---|
| 21 |
{ |
|---|
| 22 |
$xml = array(); |
|---|
| 23 |
foreach ($this->getItems() as $item) |
|---|
| 24 |
{ |
|---|
| 25 |
$xml[] = '<item>'; |
|---|
| 26 |
$xml[] = ' <title>'.htmlspecialchars($this->getItemFeedTitle($item)).'</title>'; |
|---|
| 27 |
if ($this->getItemFeedDescription($item)) |
|---|
| 28 |
{ |
|---|
| 29 |
$xml[] = ' <description>'.htmlspecialchars($this->getItemFeedDescription($item)).'</description>'; |
|---|
| 30 |
} |
|---|
| 31 |
$xml[] = ' <link>'.$this->getItemFeedLink($item).'</link>'; |
|---|
| 32 |
$xml[] = '</item>'; |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
return $xml; |
|---|
| 36 |
} |
|---|
| 37 |
|
|---|
| 38 |
protected function getVersion() |
|---|
| 39 |
{ |
|---|
| 40 |
return '0.91'; |
|---|
| 41 |
} |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
?> |
|---|