/** * Returns an instance of the LDMatcher singleton * @return WURFL_Handlers_LDMatcher */ public static function INSTANCE() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }
/** * Alias of WURFL_Handlers_Matcher_LDMatcher::match() * @param array $collection * @param string $needle * @param int $tolerance * @return string Matched user agent * @see WURFL_Handlers_Matcher_LDMatcher::match() */ public static function ldMatch($collection, $needle, $tolerance = 7) { return WURFL_Handlers_Matcher_LDMatcher::INSTANCE()->match($collection, $needle, $tolerance); }