root/trunk/lib/sfFeed/sfRssUserland091Feed.class.php

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  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  *
13  * @package    symfony
14  * @subpackage addon
15  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
16  * @version    SVN: $Id$
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 ?>
Note: See TracBrowser for help on using the browser.