ch.php

Go to the documentation of this file.
00001 <?php
00013 require_once(dirname(__FILE__).'/base.php');     
00014  
00021 class LFSWorldChart extends LFSWorldDataProvider
00022 {
00027     var $m_sURL = 'http://www.lfsworld.net/pubstat/get_stat2.php?action=ch';
00028     
00033     var $m_aCacheData = array('lifeTime' => 60, 'actualTarpit'=>5);
00034 
00051     function _parseLine($line)
00052     {
00053         $return = array();
00054         $line = explode(' ', $line);
00055         $return['time'] = array_shift($line);
00056         $return['flags'] = array_shift($line);
00057         $return['racer'] = implode(' ', $line);
00058         
00059         return $return;
00060     }
00061     
00069     function initParams(&$params)
00070     {
00071         return (parent::initParams($params) && isset($params['car']) && isset($params['track']));
00072     }
00073 }
00074 
00075 ?>

Generated on Wed Oct 25 03:13:32 2006 for LFSWorldParsingProviderFramework by  doxygen 1.4.6