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

Class: WURFL_Handlers_Matcher_LDMatcher

Source Location: /Handlers/Matcher/LDMatcher.php

Class Overview


WURFL Levenshtein distance user agent matcher.


Author(s):

Implements interfaces:

Methods



Class Details

[line 29]
WURFL Levenshtein distance user agent matcher.

This User Agent Matcher uses the Levenshtein Distance algorithm to determine the distance between to User Agents. A tolerance is specified on the match() method which limits the distance. User Agents that match less than or equal to this tolerance are consider to be a match;




Tags:



[ Top ]


Class Methods


static method INSTANCE [line 41]

static WURFL_Handlers_LDMatcher INSTANCE( )

Returns an instance of the LDMatcher singleton



Tags:

access:  public


[ Top ]

method match [line 48]

void match( &$collection, $needle, $tolerance)



Tags:

access:  public



Implementation of:
WURFL_Handlers_Matcher_Interface::match()
Attempts to find a matching $needle in given $collection within the specified $tolerance

Parameters:

   &$collection  
   $needle  
   $tolerance  

[ Top ]


Documentation generated on Thu, 03 Oct 2013 19:11:52 +0000 by phpDocumentor 1.4.4