public function applyConclusiveMatch($ua) { $deviceId = ''; $tolerance = UserAgentUtils::indexOfOrLength($ua, ';', 0); $this->wurfl->toLog("Applying " . get_class($this) . " Conclusive Match: RIS with threshold {$tolerance}", LOG_INFO); $deviceId = $this->risMatch($ua, $tolerance); return $deviceId; }
public function applyConclusiveMatch($ua) { $tolerance = UserAgentUtils::indexOfOrLength($ua, ' Build/', 0); if ($tolerance == strlen($ua)) { $tolerance = UserAgentUtils::indexOfOrLength($ua, ')', 0); } $this->wurfl->toLog("Applying " . get_class($this) . " Conclusive Match: RIS with threshold {$tolerance}", LOG_INFO); return $this->risMatch($ua, $tolerance); }
public function recoveryMatch($ua) { if (self::startsWith($ua, "SAMSUNG")) { $tolerance = 8; return $this->ldMatch($ua, $tolerance); } else { $tolerance = UserAgentUtils::indexOfOrLength($ua, '/', strpos($ua, 'Samsung')); return $this->risMatch($ua, $tolerance); } }
public function applyConclusiveMatch($ua) { if (self::contains($ua, "MobilePhone")) { $tolerance = UserAgentUtils::indexOfOrLength($ua, '/', strpos($ua, "MobilePhone")); } else { $tolerance = UserAgentUtils::firstSlash($ua); } $this->wurfl->toLog("Applying " . get_class($this) . " Conclusive Match: RIS with threshold {$tolerance}", LOG_INFO); return $this->risMatch($ua, $tolerance); }
public function applyConclusiveMatch($ua) { $deviceId = ''; if (self::startsWith($ua, 'Apple')) { if (($tolerance = UserAgentUtils::ordinalIndexOf($ua, ' ', 3)) == -1) { $tolerance = strlen($ua); } } else { $tolerance = UserAgentUtils::indexOfOrLength($ua, ';', 0); } $this->wurfl->toLog("Applying " . get_class($this) . " Conclusive Match: RIS with threshold {$tolerance}", LOG_INFO); $deviceId = $this->risMatch($ua, $tolerance); return $deviceId; }
public function applyConclusiveMatch($ua) { $tolerance = UserAgentUtils::indexOfOrLength($ua, '/', strpos($ua, 'Chrome')); $this->wurfl->toLog("Applying " . get_class($this) . " Conclusive Match: RIS with threshold {$tolerance}", LOG_INFO); return $this->risMatch($ua, $tolerance); }