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

Class: UserAgentFactory

Source Location: /UserAgentFactory.php

Class Overview


Evaluates the user agent using keywords, regular expressions, UserAgentMatchers and HTTP Headers


Author(s):

Variables

Methods



Class Details

[line 27]
Evaluates the user agent using keywords, regular expressions, UserAgentMatchers and HTTP Headers



Tags:



[ Top ]


Class Variables

static $matchers = array(
      "Alcatel",
      "Android",
      "AOL",
      "Apple",
      "BenQ",
      "BlackBerry",
      "Bot",
      "CatchAll",
      "Chrome",
      "DoCoMo",
      "Firefox",
      "Grundig",
      "HTC",
      "Kddi",
      "Konqueror",
      "Kyocera",
      "LG",
      "Mitsubishi",
      "Motorola",
      "MSIE",
      "Nec",
      "Nintendo",
      "Nokia",
      "Opera",
      "OperaMini",
      "Panasonic",
      "Pantech",
      "Philips",
      "Portalmmm",
      "Qtek",
      "Safari",
      "Sagem",
      "Samsung",
      "Sanyo",
      "Sharp",
      "Siemens",
      "SonyEricsson",
      "SPV",
      "Toshiba",
      "Vodafone",
      "WindowsCE"
   )

[line 32]



Tags:

access:  public

Type:   mixed


[ Top ]

$errors =

[line 30]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method createUserAgentMatcher [line 88]

static UserAgentMatcher createUserAgentMatcher( TeraWurfl $wurfl, String $userAgent)

Determines which UserAgentMatcher is the best fit for the incoming user agent and returns it



Tags:

access:  public


Parameters:

TeraWurfl   $wurfl  
String   $userAgent  

[ Top ]

static method userAgentType [line 327]

static void userAgentType( $wurfl, $userAgent)



Tags:

access:  public


Parameters:

   $wurfl  
   $userAgent  

[ Top ]

constructor __construct [line 77]

UserAgentFactory __construct( )



Tags:

access:  public


[ Top ]


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