Example #1
0
 /**
  * if UA starts with "KDDI/", apply RIS with Second Slash Otherwise apply RIS
  * with FS
  */
 function lookForMatchingUserAgent($userAgent)
 {
     if (WURFL_Handlers_Utils::checkIfStartsWith($userAgent, "KDDI/")) {
         $tollerance = WURFL_Handlers_Utils::secondSlash($userAgent);
         return WURFL_Handlers_Utils::risMatch(array_keys($this->userAgentsWithDeviceID), $userAgent, $tollerance);
     }
     return parent::lookForMatchingUserAgent($userAgent);
 }