Changeset 14613 for branches/dev/html
- Timestamp:
- 2007/06/14 00:55:35 (19 years ago)
- Location:
- branches/dev/html/test/adachi/LLReader
- Files:
-
- 2 edited
-
LLReader.php (modified) (3 diffs)
-
LLReader/Plugin/Filter/SearchEntry2Feed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/test/adachi/LLReader/LLReader.php
r14612 r14613 7 7 private $plugins; 8 8 private $feeds; 9 private $update_feeds; 9 10 10 11 public function __construct($config){ … … 12 13 $this->plugins = array(); 13 14 $this->feeds = array(); 15 $this->update_feeds = array(); 14 16 } 15 17 … … 83 85 84 86 public function get_feeds () { 87 if ( count($this->update_feeds) > 0 ) { 88 return $this->update_feeds; 89 } 85 90 return $this->feeds; 86 91 } -
branches/dev/html/test/adachi/LLReader/LLReader/Plugin/Filter/SearchEntry2Feed.php
r14612 r14613 31 31 } 32 32 33 private function entry2feed ($llr, $feed, $entry) { 33 private function entry2feed ($llr, $feed, $entries) { 34 $output = "<?xml version=\"1.0\"?> 35 <rss version=\"2.0\"> 36 <channel> 37 <title>{$feed->title}</title> 38 <link>http://www.tracypeterson.com/RSS/RSS.php</link> 39 <description>$feed->description</description> 40 <language>$feed->language</language> 41 <pubDate>$feed->date</pubDate> 42 <lastBuildDate>$feed->lastBuildDate</lastBuildDate> 43 <docs>http://someurl.com</docs> 44 <managingEditor>[email protected]</managingEditor> 45 <webMaster>[email protected]</webMaster> 46 "; 47 48 foreach ($entries as $entry) 49 { 50 $output .= "<item><title>" . $entry->title . "</title> 51 <link>" . $entry->link . "</link> 52 53 <description>".htmlentities(strip_tags($line['description']))."</description> 54 </item>"; 55 } 34 56 57 return new LLReader_Feed($output); 35 58 } 36 59 }
Note: See TracChangeset
for help on using the changeset viewer.
