- Timestamp:
- 07/02/08 01:29:48 (5 years ago)
- Location:
- websites/planet.php.gr.jp/trunk
- Files:
-
- 3 modified
-
app/action_cli/Crawler.php (modified) (2 diffs)
-
lib/BM_Feed.php (modified) (5 diffs)
-
lib/BM_FeedParser.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
websites/planet.php.gr.jp/trunk/app/action_cli/Crawler.php
r15020 r15021 82 82 function crawlRSS() 83 83 { 84 require_once ' BM_Feed.php';84 require_once 'Delphinus_Feed.php'; 85 85 86 86 $DB = $this->backend->getDB(); … … 93 93 94 94 try { 95 $bmf = new BM_Feed($rss['rss_url']);95 $bmf = new Delphinus_Feed($rss['rss_url']); 96 96 $bmf->parse(); 97 97 } catch(Exception $e) { -
websites/planet.php.gr.jp/trunk/lib/BM_Feed.php
r15011 r15021 1 1 <?php 2 // $Id: BM_Feed.php 683 2008-05-13 06:18:04Z koyama $ 3 4 require_once 'BM_FeedParser.php'; 2 /** 3 * Delphinus_Feed.php 4 * 5 * 6 */ 7 // $Id: Delphinus_Feed.php 683 2008-05-13 06:18:04Z koyama $ 8 9 require_once 'Delphinus_FeedParser.php'; 5 10 require_once 'HTTP/Request.php'; 6 11 … … 12 17 } 13 18 14 class BM_Feed {19 class Delphinus_Feed { 15 20 protected $contents = null; 16 21 protected $parser = null; … … 67 72 throw new Exception('empty contents'); 68 73 } 69 $parser = new BM_FeedParser($this->contents, $options);74 $parser = new Delphinus_FeedParser($this->contents, $options); 70 75 $parser->parse(); 71 76 … … 79 84 $type = $this->parser->type(); 80 85 $item = $this->parser->items(); 81 return new BM_FeedItem($item, $type);86 return new Delphinus_FeedItem($item, $type); 82 87 } 83 88 } 84 89 85 class BM_FeedItem implements Iterator {90 class Delphinus_FeedItem implements Iterator { 86 91 protected $pos = 0; 87 92 protected $type = null; … … 198 203 } 199 204 200 //$bmf = new BM_Feed('http://project-p.jp/halt/anubis/rss/php');205 //$bmf = new Delphinus_Feed('http://project-p.jp/halt/anubis/rss/php'); 201 206 //$bmf->parse(); 202 207 //foreach ($bmf->getItems() as $item) { -
websites/planet.php.gr.jp/trunk/lib/BM_FeedParser.php
r15011 r15021 1 1 <?php 2 // $Id: BM_FeedParser.php 601 2008-04-11 05:18:46Z koyama $ 3 4 // based on Rasmus Lerdorf's simple_rss.php 5 // http://lerdorf.com/php/simple_rss.phps 6 7 class BM_FeedParser { 2 /** 3 * 4 * $Id: Delphinus_FeedParser.php 601 2008-04-11 05:18:46Z koyama $ 5 * 6 * based on Rasmus Lerdorf's simple_rss.php 7 * http://lerdorf.com/php/simple_rss.phps 8 * 9 */ 10 11 /** 12 * Delphinus_FeedParser 13 * 14 */ 15 class Delphinus_FeedParser { 8 16 9 17 protected $xmlversion = '1.0';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)