Exemplo n.º 1
0
 public function canHandle($userAgent)
 {
     if (WURFL_Handlers_Utils::isDesktopBrowser($userAgent)) {
         return false;
     }
     return WURFL_Handlers_Utils::checkIfContainsCaseInsensitive($userAgent, 'blackberry') || WURFL_Handlers_Utils::checkIfContains($userAgent, '(BB10;') || WURFL_Handlers_Utils::checkIfContains($userAgent, '(PlayBook');
 }
Exemplo n.º 2
0
 public function canHandle($userAgent)
 {
     if (WURFL_Handlers_Utils::isDesktopBrowser($userAgent)) {
         return false;
     }
     return WURFL_Handlers_Utils::checkIfContainsCaseInsensitive($userAgent, "BlackBerry");
 }
 public function canHandle($userAgent)
 {
     foreach ($this->botCrawlerTranscoder as $key) {
         if (WURFL_Handlers_Utils::checkIfContainsCaseInsensitive($userAgent, $key)) {
             return true;
         }
     }
     return false;
 }