コード例 #1
0
 /**
  * Parses the UA for bot information using the Bot parser
  */
 protected function parseBot()
 {
     $botParser = new Bot();
     $botParser->setUserAgent($this->getUserAgent());
     $botParser->setCache($this->getCache());
     if ($this->discardBotInformation) {
         $botParser->discardDetails();
     }
     $this->bot = $botParser->parse();
 }
コード例 #2
0
 /**
  * Parses the UA for bot information using the Bot parser
  */
 protected function parseBot()
 {
     if ($this->skipBotDetection) {
         $this->bot = false;
         return false;
     }
     $botParser = new Bot();
     $botParser->setUserAgent($this->getUserAgent());
     $botParser->setYamlParser($this->getYamlParser());
     $botParser->setCache($this->getCache());
     if ($this->discardBotInformation) {
         $botParser->discardDetails();
     }
     $this->bot = $botParser->parse();
 }