wr.php

Go to the documentation of this file.
00001 <?php
00013 require_once(dirname(__FILE__).'/base.php');    
00014  
00023 class LFSWorldWorldRecords extends LFSWorldDataProvider
00024 {
00029     var $m_sURL = 'http://www.lfsworld.net/pubstat/get_stat2.php?action=wr';
00030     
00035     var $m_aSrcMetaData = array('lifeTime' => 60, 'actualTarpit' => 5);
00036 
00053     function _parseLine($line)
00054     {
00055         $return =array();
00056         $line = explode(' ', $line);
00057         $return['id_wr'] = array_shift($line);
00058         $return['track'] = array_shift($line);
00059         $return['car'] = array_shift($line);
00060         $return['time'] = array_shift($line);
00061         $return['flags'] = array_shift($line);
00062         $return['racer'] = implode(' ', $line);
00063         
00064         return $return;
00065     }
00066     
00074     function initParams(&$params)
00075     {
00076         if(!isset($params['version']) || $params['version'] != 1.2)
00077             $params['version'] = 1.2;
00078         return parent::initParams($params);
00079     }
00080 }
00081 
00082 ?>

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