/** * @param string $userAgent * * @return null|string */ public function applyConclusiveMatch($userAgent) { $tolerance = Utils::toleranceToRisDelimeter($userAgent); if ($tolerance !== false) { return $this->getDeviceIDFromRIS($userAgent, $tolerance); } return WurflConstants::NO_MATCH; }
/** * @param string $userAgent * * @return null|string */ public function applyConclusiveMatch($userAgent) { $tolerance = Utils::toleranceToRisDelimeter($userAgent); if ($tolerance !== false) { return $this->getDeviceIDFromRIS($userAgent, $tolerance); } $tolerance = Utils::firstSlash($userAgent); return $this->getDeviceIDFromRIS($userAgent, $tolerance); }
/** * @param string $userAgent * * @return null|string */ public function applyConclusiveMatch($userAgent) { $tolerance = Utils::toleranceToRisDelimeter($userAgent); if ($tolerance !== false) { return $this->getDeviceIDFromRIS($userAgent, $tolerance); } if (Utils::checkIfContains($userAgent, 'NativeHost')) { return 'generic_ms_phone_os7'; } return WurflConstants::NO_MATCH; }
/** * @param string $userAgent * * @return null|string */ public function applyConclusiveMatch($userAgent) { $tolerance = Utils::toleranceToRisDelimeter($userAgent); if ($tolerance !== false) { return $this->getDeviceIDFromRIS($userAgent, $tolerance); } //Return no match for UAs with no extractable Android version, model and that do not start with either Mozilla or Dalvik if (!Utils::checkIfStartsWithAnyOf($userAgent, array('Mozilla', 'Dalvik'))) { return WurflConstants::NO_MATCH; } if (self::getAndroidModel($userAgent, false) === null) { return $this->getDeviceIDFromRIS($userAgent, strlen($userAgent)); } // Standard RIS Matching $tolerance = Utils::indexOfAnyOrLength($userAgent, array(' Build/', ' AppleWebKit')); return $this->getDeviceIDFromRIS($userAgent, $tolerance); }