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

Class: OperaUserAgentMatcher

Source Location: /UserAgentMatchers/OperaUserAgentMatcher.php

Class Overview

UserAgentMatcher
   |
   --OperaUserAgentMatcher

Provides a specific user agent matching technique


Variables

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]
Provides a specific user agent matching technique



[ Top ]


Class Variables

static $constantIDs = array("opera","opera_7","opera_8","opera_9","opera_10")

[line 21]



Tags:

access:  public

Type:   mixed
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 23]

OperaUserAgentMatcher __construct( $wurfl)



Tags:

access:  public


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

Parameters:

TeraWurfl   $wurfl  

[ Top ]

method applyConclusiveMatch [line 26]

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 ]

method recoveryMatch [line 40]

void recoveryMatch( $ua)



Tags:

access:  public


Overrides UserAgentMatcher::recoveryMatch() (Overide this method in order to have an alternative matching algorithm)

Parameters:

   $ua  

[ Top ]


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