Changeset 15021 for websites

Show
Ignore:
Timestamp:
07/02/08 01:29:48 (6 years ago)
Author:
ha1t
Message:

クラス名変更

Location:
websites/planet.php.gr.jp/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • websites/planet.php.gr.jp/trunk/app/action_cli/Crawler.php

    r15020 r15021  
    8282    function crawlRSS() 
    8383    { 
    84         require_once 'BM_Feed.php'; 
     84        require_once 'Delphinus_Feed.php'; 
    8585 
    8686        $DB = $this->backend->getDB(); 
     
    9393 
    9494            try { 
    95                 $bmf = new BM_Feed($rss['rss_url']); 
     95                $bmf = new Delphinus_Feed($rss['rss_url']); 
    9696                $bmf->parse(); 
    9797            } catch(Exception $e) { 
  • websites/planet.php.gr.jp/trunk/lib/BM_Feed.php

    r15011 r15021  
    11<?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 
     9require_once 'Delphinus_FeedParser.php'; 
    510require_once 'HTTP/Request.php'; 
    611 
     
    1217} 
    1318 
    14 class BM_Feed { 
     19class Delphinus_Feed { 
    1520    protected $contents = null; 
    1621    protected $parser = null; 
     
    6772            throw new Exception('empty contents'); 
    6873        } 
    69         $parser = new BM_FeedParser($this->contents, $options); 
     74        $parser = new Delphinus_FeedParser($this->contents, $options); 
    7075        $parser->parse(); 
    7176 
     
    7984        $type = $this->parser->type(); 
    8085        $item = $this->parser->items(); 
    81         return new BM_FeedItem($item, $type); 
     86        return new Delphinus_FeedItem($item, $type); 
    8287    } 
    8388} 
    8489 
    85 class BM_FeedItem implements Iterator { 
     90class Delphinus_FeedItem implements Iterator { 
    8691    protected $pos = 0; 
    8792    protected $type = null; 
     
    198203} 
    199204 
    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'); 
    201206//$bmf->parse(); 
    202207//foreach ($bmf->getItems() as $item) { 
  • websites/planet.php.gr.jp/trunk/lib/BM_FeedParser.php

    r15011 r15021  
    11<?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 */ 
     15class Delphinus_FeedParser { 
    816 
    917    protected $xmlversion = '1.0';