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

Class: SimpleDesktopUserAgentMatcher

Source Location: /UserAgentMatchers/SimpleDesktopUserAgentMatcher.php

Class Overview

UserAgentMatcher
   |
   --SimpleDesktopUserAgentMatcher

Matches desktop browsers. This UserAgentMatcher is unlike the rest in that it is does not use any database functions to find a matching device. If a device is not matched with this UserAgentMatcher, another one is assigned to match it using the database.


Methods


Inherited Variables

Inherited Methods

Class: UserAgentMatcher

UserAgentMatcher::__construct()
UserAgentMatcher::applyConclusiveMatch()
Attempts to find a conclusively matching WURFL ID from a given user agent
UserAgentMatcher::applyRecoveryMatch()
Attempts to find a loosely matching WURFL ID from a given user agent
UserAgentMatcher::contains()
Check if user agent contains target string
UserAgentMatcher::ldMatch()
Attempts to match given user agent string to a device from the database by calculating their Levenshtein Distance (LD)
UserAgentMatcher::matcherName()
Returns the name of the UserAgentMatcher in use
UserAgentMatcher::recoveryMatch()
Overide this method in order to have an alternative matching algorithm
UserAgentMatcher::regexContains()
Check if user agent contains another string using PCRE (Perl Compatible Reqular Expressions)
UserAgentMatcher::risMatch()
Attempts to match given user agent string to a device from the database by comparing less and less of the strings until a match is found (RIS, Reduction in String)
UserAgentMatcher::startsWith()
Check if user agent starts with target string
UserAgentMatcher::tableSuffix()
Returns the database table suffix for the current UserAgentMatcher
UserAgentMatcher::updateDeviceList()
Updates the deviceList Array to contain all the WURFL IDs that are related to the current UserAgentMatcher

Class Details

[line 19]
Matches desktop browsers. This UserAgentMatcher is unlike the rest in that it is does not use any database functions to find a matching device. If a device is not matched with this UserAgentMatcher, another one is assigned to match it using the database.



[ Top ]


Class Methods


static method isDesktopBrowser [line 31]

static Bool isDesktopBrowser( String $ua)

Is the given user agent very likely to be a desktop browser



Tags:

access:  public


Parameters:

String   $ua   User agent

[ Top ]

constructor __construct [line 20]

SimpleDesktopUserAgentMatcher __construct( $wurfl)



Tags:

access:  public


Overrides UserAgentMatcher::__construct() (parent method not documented)

Parameters:

TeraWurfl   $wurfl  

[ Top ]

method applyConclusiveMatch [line 23]

void applyConclusiveMatch( $ua)



Tags:

access:  public


Overrides UserAgentMatcher::applyConclusiveMatch() (Attempts to find a conclusively matching WURFL ID from a given user agent)

Parameters:

   $ua  

[ Top ]


Documentation generated on Sun, 19 Sep 2010 00:15:55 +0000 by phpDocumentor 1.4.3