deviceTypes = $view->deviceModels = $view->deviceBrands = $view->osReport = $view->browserReport = "blank";
$view->deviceTypes = $this->getType(true);
$view->deviceBrands = $this->getBrand(true);
$view->deviceModels = $this->getModel(true);
$view->osReport = $this->getOsFamilies(true);
$view->browserReport = $this->getBrowserFamilies(true);
return $view->render();
}
public function getType()
{
return $this->renderReport(__FUNCTION__);
}
public function getBrand()
{
return $this->renderReport(__FUNCTION__);
}
public function getModel()
{
return $this->renderReport(__FUNCTION__);
}
public function getOsFamilies()
{
return $this->renderReport(__FUNCTION__);
}
public function getOsVersions()
{
return $this->renderReport(__FUNCTION__);
}
public function getBrowserFamilies()
{
return $this->renderReport(__FUNCTION__);
}
public function getBrowserVersions()
{
return $this->renderReport(__FUNCTION__);
}
/**
* You may manually call this controller action to force re-processing of past user agents
*/
public function refreshParsedUserAgents()
{
Piwik::checkUserIsSuperUser();
$q = "SELECT idvisit, config_debug_ua FROM " . Common::prefixTable("log_visit");
$res = Db::fetchAll($q);
$output = '';
foreach ($res as $rec) {
$UAParser = new UserAgentParserEnhanced($rec['config_debug_ua']);
$UAParser->parse();
$output .= "Processing idvisit = " . $rec['idvisit'] . "
";
$output .= "UserAgent string: " . $rec['config_debug_ua'] . "
Decoded values:";
$uaDetails = $this->getArray($UAParser);
var_export($uaDetails);
$output .= "