TeraWurfl
[ class tree: TeraWurfl ] [ index: TeraWurfl ] [ all elements ]

Class: TeraWurflLoader

Source Location: /TeraWurflLoader.php

Class Overview


Loads the WURFL file from a local file or remote URL into the Tera-WURFL database.


Variables

Methods



Class Details

[line 20]
Loads the WURFL file from a local file or remote URL into the Tera-WURFL database.



[ Top ]


Class Variables

static $WURFL_LOCAL =  "local"

[line 22]



Tags:

access:  public

Type:   mixed


[ Top ]

static $WURFL_PATCH =  "patch"

[line 25]



Tags:

access:  public

Type:   mixed


[ Top ]

static $WURFL_REMOTE =  "remote"

[line 23]



Tags:

access:  public

Type:   mixed


[ Top ]

static $WURFL_REMOTE_CVS =  "remote_cvs"

[line 24]



Tags:

access:  public

Type:   mixed


[ Top ]

$devices =

[line 36]



Tags:

access:  protected

Type:   mixed


[ Top ]

$errors =

[line 28]



Tags:

access:  public

Type:   mixed


[ Top ]

$file =

[line 33]



Tags:

access:  protected

Type:   mixed


[ Top ]

$last_updated =

[line 30]



Tags:

access:  public

Type:   mixed


[ Top ]

$mainDevices =  0

[line 40]



Tags:

access:  public

Type:   mixed


[ Top ]

$parser =

[line 38]



Tags:

access:  protected

Type:   mixed


[ Top ]

$patchAddedDevices =  0

[line 41]



Tags:

access:  public

Type:   mixed


[ Top ]

$patchMergedDevices =  0

[line 42]



Tags:

access:  public

Type:   mixed


[ Top ]

$PRESERVE_CACHE =  true

[line 56]



Tags:

access:  protected

Type:   mixed


[ Top ]

$table =

[line 32]



Tags:

access:  protected

Type:   mixed


[ Top ]

$tables =

[line 37]



Tags:

access:  protected

Type:   mixed


[ Top ]

$timecache =

[line 52]



Tags:

var:  Performance tracking variable
access:  protected

Type:   int


[ Top ]

$timedatabase =

[line 51]



Tags:

var:  Performance tracking variable
access:  protected

Type:   int


[ Top ]

$timeend =

[line 53]



Tags:

var:  Performance tracking variable
access:  protected

Type:   int


[ Top ]

$timepatch =

[line 50]



Tags:

var:  Performance tracking variable
access:  protected

Type:   int


[ Top ]

$timesort =

[line 49]



Tags:

var:  Performance tracking variable
access:  protected

Type:   int


[ Top ]

$timestart =

[line 47]



Tags:

var:  Performance tracking variable
access:  protected

Type:   int


[ Top ]

$timevalidate =

[line 48]



Tags:

var:  Performance tracking variable
access:  protected

Type:   int


[ Top ]

$version =

[line 29]



Tags:

access:  public

Type:   mixed


[ Top ]

$wurfl =

[line 34]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 59]

TeraWurflLoader __construct( TeraWurfl &$wurfl)



Tags:

access:  public


Parameters:

TeraWurfl   &$wurfl  

[ Top ]

method cacheRebuildTime [line 230]

int cacheRebuildTime( )

Get performance information



Tags:

return:  Duration in seconds
access:  public


[ Top ]

method databaseTime [line 227]

int databaseTime( )

Get performance information



Tags:

return:  Duration in seconds
access:  public


[ Top ]

method getParserName [line 204]

void getParserName( )



Tags:

access:  public


[ Top ]

method load [line 74]

Bool load( )

Loads the WURFL and patch files into the database



Tags:

return:  Success
access:  public


[ Top ]

method loadIntoDB [line 165]

Bool loadIntoDB( )

Loads the WURFL devices into the database.



Tags:

return:  Completed without error
access:  public


[ Top ]

method loadPatches [line 178]

Bool loadPatches( )

Loads the patch files from TeraWurflConfig::PATCH_FILE



Tags:

return:  Success
access:  public


[ Top ]

method parseTime [line 215]

int parseTime( )

Get performance information



Tags:

return:  Duration in seconds
access:  public


[ Top ]

method patchTime [line 218]

int patchTime( )

Get performance information



Tags:

return:  Duration in seconds
access:  public


[ Top ]

method sort [line 147]

Bool sort( )

Sorts the validated data from $this->devices into their respective UserAgentMatcher tables ($this->tables)

based on the UserAgentMatcher that matches the device's user agent




Tags:

return:  Success
access:  public


[ Top ]

method sortTime [line 224]

int sortTime( )

Get performance information



Tags:

return:  Duration in seconds
access:  public


[ Top ]

method totalLoadTime [line 212]

int totalLoadTime( )

Get performance information



Tags:

return:  Duration in seconds
access:  public


[ Top ]

method validate [line 115]

Bool validate( )

Validates the data from the WURFL file or Patch file



Tags:

return:  Vaild
access:  public


[ Top ]

method validateTime [line 221]

int validateTime( )

Get performance information



Tags:

return:  Duration in seconds
access:  public


[ Top ]

method validID [line 240]

Bool validID( String $id)

Is WURFL Device ID Valid?



Tags:

access:  protected


Parameters:

String   $id   WURFL ID

[ Top ]


Documentation generated on Sun, 19 Sep 2010 00:16:02 +0000 by phpDocumentor 1.4.3