Skip to content
Extraits de code Groupes Projets
DevicesDetection.php 1,92 ko
Newer Older
  • Learn to ignore specific revisions
  •  * Piwik - free/libre analytics platform
    
     *
     * @link http://piwik.org
     * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
     *
     */
    
    mattab's avatar
    mattab a validé
    use Piwik\ArchiveProcessor;
    
    require_once PIWIK_INCLUDE_PATH . '/plugins/DevicesDetection/functions.php';
    
    class DevicesDetection extends \Piwik\Plugin
    
                'Live.getAllVisitorDetails' => 'extendVisitorDetails',
    
            );
        }
    
        public function extendVisitorDetails(&$visitor, $details)
        {
    
    sgiehl's avatar
    sgiehl a validé
            $visitor['deviceType']               = $instance->getDeviceType();
    
            $visitor['deviceTypeIcon']           = $instance->getDeviceTypeIcon();
            $visitor['deviceBrand']              = $instance->getDeviceBrand();
            $visitor['deviceModel']              = $instance->getDeviceModel();
    
            $visitor['operatingSystem']          = $instance->getOperatingSystem();
    
            $visitor['operatingSystemName']      = $instance->getOperatingSystemName();
    
            $visitor['operatingSystemIcon']      = $instance->getOperatingSystemIcon();
    
            $visitor['operatingSystemCode']      = $instance->getOperatingSystemCode();
            $visitor['operatingSystemVersion']   = $instance->getOperatingSystemVersion();
    
            $visitor['browserFamily']            = $instance->getBrowserEngine();
            $visitor['browserFamilyDescription'] = $instance->getBrowserEngineDescription();
    
            $visitor['browser']                  = $instance->getBrowser();
            $visitor['browserName']              = $instance->getBrowserName();
    
            $visitor['browserIcon']              = $instance->getBrowserIcon();
            $visitor['browserCode']              = $instance->getBrowserCode();
            $visitor['browserVersion']           = $instance->getBrowserVersion();