hl.php

Go to the documentation of this file.
00001 <?php
00013 require_once(dirname(__FILE__).'/base.php');    
00014 
00021 class LFSWorldHotlaps extends LFSWorldDataProvider
00022 {
00027     var $m_sURL = 'http://www.lfsworld.net/pubstat/get_stat2.php?action=hl';
00028     
00033     var $m_aSrcMetaData = array('lifeTime' => 60, 'actualTarpit'=>5);
00034     
00051     function _parseLine($line)
00052     {
00053         //@TODO test speeds of old & new + bug check. Migrate if it is significantly better
00054         /*$return = array();
00055         $line = explode(' ', $line);
00056         $return['id_hl'] = array_shift($line);
00057         $return['track'] = array_shift($line);
00058         $return['car'] = array_shift($line);
00059         $return['time'] = array_shift($line);
00060         $return['flags'] = array_shift($line);*/
00061         list($r['id_hl'], $r['track'], $r['car'], $r['time'], $r['flags']) = explode(' ', $line);
00062         return $r;
00063     }
00064     
00072     function initParams(&$params)
00073     {
00074         if(!isset($params['version']) || $params['version'] != 1.2)
00075             $params['version'] = 1.2;
00076         return (parent::initParams($params) && isset($params['racer']));
00077     }
00078 }
00079 
00080 ?>

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