|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/KMU-CSR-PLANER/wp-content/plugins/matomo/app/plugins/UserCountry/Columns/ |
Upload File : |
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\UserCountry\Columns;
use Piwik\Columns\Dimension;
use Piwik\Common;
use Piwik\Metrics\Formatter;
class Continent extends Dimension
{
protected $dbTableName = 'log_visit';
protected $columnName = 'location_country';
protected $type = self::TYPE_TEXT;
protected $category = 'UserCountry_VisitLocation';
protected $nameSingular = 'UserCountry_Continent';
protected $namePlural = 'UserCountry_Continents';
protected $segmentName = 'continentCode';
protected $acceptValues = 'eur, asi, amc, amn, ams, afr, ant, oce';
protected $sqlFilter = 'Piwik\\Plugins\\UserCountry\\UserCountry::getCountriesForContinent';
public function groupValue($value, $idSite)
{
return Common::getContinent($value);
}
public function formatValue($value, $idSite, Formatter $formatter)
{
return \Piwik\Plugins\UserCountry\continentTranslate($value);
}
}