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

Class: SagemUserAgentMatcher

Source Location: /UserAgentMatchers/SagemUserAgentMatcher.php

Class Overview

UserAgentMatcher
   |
   --SagemUserAgentMatcher

Provides a specific user agent matching technique


Methods


Inherited Variables

Inherited Methods

Class: UserAgentMatcher

UserAgentMatcher::__construct()
Instantiates a new UserAgentMatcher
UserAgentMatcher::applyConclusiveMatch()
Attempts to find a conclusively matching WURFL ID
UserAgentMatcher::applyRecoveryMatch()
Attempts to find a loosely matching WURFL ID
UserAgentMatcher::canHandle()
Returns true if this Matcher can handle the given $httpRequest
UserAgentMatcher::getRequiredDeviceIDs()
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::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::risMatchUAPrefix()
Uses RIS to match the given User Agent $prefix, using the string length of the $prefix as the tolerance. Returns device ID $default if a match is not found.
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 22]
Provides a specific user agent matching technique



[ Top ]


Class Methods


static method canHandle [line 24]

static void canHandle( TeraWurflHttpRequest $httpRequest)



Tags:

access:  public


Overrides UserAgentMatcher::canHandle() (Returns true if this Matcher can handle the given $httpRequest)

Parameters:

TeraWurflHttpRequest   $httpRequest  

[ Top ]

method applyConclusiveMatch [line 29]

void applyConclusiveMatch( )



Tags:

access:  public


Overrides UserAgentMatcher::applyConclusiveMatch() (Attempts to find a conclusively matching WURFL ID)

[ Top ]


Documentation generated on Thu, 03 Oct 2013 15:19:16 -0400 by phpDocumentor 1.4.4