LFSWorldPersonalStats Class Reference

Inheritance diagram for LFSWorldPersonalStats:

LFSWorldDataProvider List of all members.

Public Member Functions

 parse ($rawList, &$outputList)
 initParams (&$params)

Protected Attributes

 $m_sURL = 'http://www.lfsworld.net/pubstat/get_stat2.php?action=pst'
 $m_aSrcMetaData = array('lifeTime' => 60, 'actualTarpit' => 5)

Detailed Description

Class for parsing LFSWorld personal stats.

Version:
1.1.00
Author:
Michael Simons <ixulai@gmail.com> http://creativecommons.org/licenses/by/2.5/ Creative Commons

Definition at line 23 of file pst.php.


Member Function Documentation

LFSWorldPersonalStats::initParams &$  params  ) 
 

Checks and adjusts input parameters where required & possible.

Parameters:
params (&Array) An array of the params that are set.
Returns:
(Boolean) True if the parameters are ok, false otherwise.

Reimplemented from LFSWorldDataProvider.

Definition at line 96 of file pst.php.

LFSWorldPersonalStats::parse rawList,
&$  outputList
 

Parses the raw data from LFSWorld in to an array.

Raw List Format

 requires: &racer=RACER
 optional: -
 returns: distance in metres
          fuel burnt in dl          (NEW S2 stat)
          laps
          hosts joined
          wins
          second
          third
          finished
          quals
          pole
          online credits
          drags
          drag wins
 (1.1)	online
 (1.1)	hostname
 

Parameters:
rawList (String) The raw list retrieved from LFSWorld that needs to be parsed.
[out] outputList (Array) A reference to an array that will store the parsed output.
Returns:
(Boolean) True on success, false otherwise.

Reimplemented from LFSWorldDataProvider.

Definition at line 67 of file pst.php.


Member Data Documentation

LFSWorldPersonalStats::$m_aSrcMetaData = array('lifeTime' => 60, 'actualTarpit' => 5) [protected]
 

An array of meta data possibly useful to other parts of a program. (Such as tarpit duration)

Reimplemented from LFSWorldDataProvider.

Definition at line 35 of file pst.php.

LFSWorldPersonalStats::$m_sURL = 'http://www.lfsworld.net/pubstat/get_stat2.php?action=pst' [protected]
 

The base url of this data source.

Definition at line 29 of file pst.php.


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