Вход Регистрация
Файл: vendor/whichbrowser/parser/src/Analyser/Header/Useragent/Device/Tablet.php
Строк: 23
<?php

namespace WhichBrowserAnalyserHeaderUseragentDevice;

use 
WhichBrowserConstants;
use 
WhichBrowserData;
use 
WhichBrowserModelVersion;

trait 
Tablet
{
    private function 
detectTablet($ua)
    {
        
$this->detectWebTab($ua);
    }





    
/* WeTab */

    
private function detectWebTab($ua)
    {
        if (
preg_match('/WeTab-Browser /ui', $ua, $match)) {
            
$this->data->device->manufacturer = 'WeTab';
            
$this->data->device->model = 'WeTab';
            
$this->data->device->identified |= ConstantsId::MATCH_UA;
            
$this->data->device->type = ConstantsDeviceType::TABLET;

            
$this->data->browser->name = 'WebTab Browser';
            
$this->data->browser->version = null;

            
$this->data->os->name = 'MeeGo';
            
$this->data->os->version = null;
        }
    }
}
Онлайн: 2
Реклама