/** * Applies Catch-All match * @param string $userAgent * @return string WURFL deviceID */ public function applyRecoveryCatchAllMatch($userAgent) { if (WURFL_Handlers_Utils::isDesktopBrowserHeavyDutyAnalysis($userAgent)) { return WURFL_Constants::GENERIC_WEB_BROWSER; } $mobile = WURFL_Handlers_Utils::isMobileBrowser($userAgent); $desktop = WURFL_Handlers_Utils::isDesktopBrowser($userAgent); if (!$desktop) { $deviceId = WURFL_Handlers_Utils::getMobileCatchAllId($userAgent); if ($deviceId !== WURFL_Constants::NO_MATCH) { return $deviceId; } } if ($mobile) { return WURFL_Constants::GENERIC_MOBILE; } if ($desktop) { return WURFL_Constants::GENERIC_WEB_BROWSER; } return WURFL_Constants::GENERIC; }