Inheritance: extends Piwik\Plugin\Report
示例#1
0
文件: GetRegion.php 项目: piwik/piwik
 protected function init()
 {
     parent::init();
     $this->dimension = new Region();
     $this->name = Piwik::translate('UserCountry_Region');
     $this->documentation = Piwik::translate('UserCountry_getRegionDocumentation') . '<br/>' . $this->getGeoIPReportDocSuffix();
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 7;
     $this->subcategoryId = 'UserCountry_SubmenuLocations';
 }
示例#2
0
 protected function init()
 {
     parent::init();
     $this->dimension = new Continent();
     $this->name = Piwik::translate('UserCountry_Continent');
     $this->documentation = Piwik::translate('UserCountry_getContinentDocumentation');
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 6;
     $this->widgetTitle = Piwik::translate('UserCountry_WidgetLocation') . ' (' . Piwik::translate('UserCountry_Continent') . ')';
 }
示例#3
0
 protected function init()
 {
     parent::init();
     $this->dimension = new Continent();
     $this->name = Piwik::translate('UserCountry_Continent');
     $this->documentation = Piwik::translate('UserCountry_getContinentDocumentation');
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 6;
     $this->subcategoryId = 'UserCountry_SubmenuLocations';
 }
示例#4
0
 protected function init()
 {
     parent::init();
     $this->dimension = new City();
     $this->name = Piwik::translate('UserCountry_City');
     $this->documentation = Piwik::translate('UserCountry_getCityDocumentation') . '<br/>' . $this->getGeoIPReportDocSuffix();
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 8;
     $this->widgetTitle = Piwik::translate('UserCountry_WidgetLocation') . ' (' . Piwik::translate('UserCountry_City') . ')';
 }