init() защищенный Метод

protected init ( )
Пример #1
0
 protected function init()
 {
     parent::init();
     $this->name = Piwik::translate('General_Actions') . ' - ' . Piwik::translate('General_MainMetrics');
     $this->documentation = '';
     // TODO
     $this->order = 1;
     $this->metrics = array('nb_pageviews', 'nb_uniq_pageviews', 'nb_downloads', 'nb_uniq_downloads', 'nb_outlinks', 'nb_uniq_outlinks', 'nb_searches', 'nb_keywords', 'avg_time_generation');
 }
Пример #2
0
 protected function init()
 {
     parent::init();
     $this->dimension = new ExitPageTitle();
     $this->name = Piwik::translate('Actions_ExitPageTitles');
     $this->documentation = Piwik::translate('Actions_EntryPageTitlesReportDocumentation', '<br />') . ' ' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->metrics = array('exit_nb_visits', 'nb_visits', 'exit_rate');
     $this->order = 7;
     $this->actionToLoadSubTables = $this->action;
     $this->widgetTitle = 'Actions_WidgetExitPageTitles';
 }
Пример #3
0
 protected function init()
 {
     parent::init();
     $this->dimension = new ClickedUrl();
     $this->name = Piwik::translate('General_Outlinks');
     $this->documentation = Piwik::translate('Actions_OutlinksReportDocumentation') . ' ' . Piwik::translate('Actions_OutlinkDocumentation') . '<br />' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->metrics = array('nb_visits', 'nb_hits');
     $this->order = 8;
     $this->actionToLoadSubTables = $this->action;
     $this->subcategoryId = 'General_Outlinks';
 }
Пример #4
0
 protected function init()
 {
     parent::init();
     $this->dimension = new DownloadUrl();
     $this->name = Piwik::translate('General_Downloads');
     $this->documentation = Piwik::translate('Actions_DownloadsReportDocumentation', '<br />');
     $this->metrics = array('nb_visits', 'nb_hits');
     $this->actionToLoadSubTables = $this->action;
     $this->order = 9;
     $this->subcategoryId = 'General_Downloads';
 }
Пример #5
0
 protected function init()
 {
     parent::init();
     $this->dimension = new ExitPageUrl();
     $this->name = Piwik::translate('Actions_SubmenuPagesExit');
     $this->documentation = Piwik::translate('Actions_ExitPagesReportDocumentation', '<br />') . '<br />' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->metrics = array('exit_nb_visits', 'nb_visits');
     $this->processedMetrics = array(new AverageTimeOnPage(), new BounceRate(), new ExitRate(), new AveragePageGenerationTime());
     $this->actionToLoadSubTables = $this->action;
     $this->order = 4;
     $this->subcategoryId = 'Actions_SubmenuPagesExit';
 }
 protected function init()
 {
     parent::init();
     $this->dimension = new EntryPageTitle();
     $this->name = Piwik::translate('Actions_EntryPageTitles');
     $this->documentation = Piwik::translate('Actions_EntryPageTitlesReportDocumentation', '<br />') . ' ' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->metrics = array('entry_nb_visits', 'entry_bounce_count');
     $this->processedMetrics = array(new AverageTimeOnPage(), new BounceRate(), new ExitRate(), new AveragePageGenerationTime());
     $this->order = 6;
     $this->actionToLoadSubTables = $this->action;
     $this->widgetTitle = 'Actions_WidgetEntryPageTitles';
 }
Пример #7
0
 protected function init()
 {
     parent::init();
     $this->dimension = new PageTitle();
     $this->name = Piwik::translate('Actions_SubmenuPageTitles');
     $this->documentation = Piwik::translate('Actions_PageTitlesReportDocumentation', array('<br />', htmlentities('<title>')));
     $this->order = 5;
     $this->metrics = array('nb_hits', 'nb_visits');
     $this->processedMetrics = array(new AverageTimeOnPage(), new BounceRate(), new ExitRate(), new AveragePageGenerationTime());
     $this->actionToLoadSubTables = $this->action;
     $this->subcategoryId = 'Actions_SubmenuPageTitles';
 }
Пример #8
0
 protected function init()
 {
     parent::init();
     $this->dimension = new PageTitle();
     $this->name = Piwik::translate('Actions_SubmenuPageTitles');
     $this->documentation = Piwik::translate('Actions_PageTitlesReportDocumentation', array('<br />', htmlentities('<title>')));
     $this->order = 5;
     $this->metrics = array('nb_hits', 'nb_visits', 'bounce_rate', 'avg_time_on_page', 'exit_rate', 'avg_time_generation');
     $this->actionToLoadSubTables = $this->action;
     $this->menuTitle = 'Actions_SubmenuPageTitles';
     $this->widgetTitle = 'Actions_WidgetPageTitles';
 }
Пример #9
0
 protected function init()
 {
     parent::init();
     $this->dimension = new EntryPageUrl();
     $this->name = Piwik::translate('Actions_SubmenuPagesEntry');
     $this->documentation = Piwik::translate('Actions_EntryPagesReportDocumentation', '<br />') . '<br />' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->metrics = array('entry_nb_visits', 'entry_bounce_count', 'bounce_rate');
     $this->order = 3;
     $this->actionToLoadSubTables = $this->action;
     $this->menuTitle = 'Actions_SubmenuPagesEntry';
     $this->widgetTitle = 'Actions_WidgetPagesEntry';
 }
Пример #10
0
 protected function init()
 {
     parent::init();
     $this->dimension = new PageUrl();
     $this->name = Piwik::translate('Actions_PageUrls');
     $this->documentation = Piwik::translate('Actions_PagesReportDocumentation', '<br />') . '<br />' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->actionToLoadSubTables = $this->action;
     $this->order = 2;
     $this->metrics = array('nb_hits', 'nb_visits', 'bounce_rate', 'avg_time_on_page', 'exit_rate', 'avg_time_generation');
     $this->segmentSql = 'log_visit.visit_entry_idaction_url';
     $this->menuTitle = 'General_Pages';
     $this->widgetTitle = 'General_Pages';
 }
Пример #11
0
 protected function init()
 {
     parent::init();
     $this->dimension = new PageUrl();
     $this->name = Piwik::translate('Actions_PageUrls');
     $this->documentation = Piwik::translate('Actions_PagesReportDocumentation', '<br />') . '<br />' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->actionToLoadSubTables = $this->action;
     $this->order = 2;
     $this->metrics = array('nb_hits', 'nb_visits');
     $this->processedMetrics = array(new AverageTimeOnPage(), new BounceRate(), new ExitRate(), new AveragePageGenerationTime());
     $this->segmentSql = 'log_visit.visit_entry_idaction_url';
     $this->menuTitle = 'General_Pages';
     $this->widgetTitle = 'General_Pages';
 }
Пример #12
0
 protected function init()
 {
     parent::init();
     $this->category = 'Actions_SubmenuSitesearch';
 }
Пример #13
0
 protected function init()
 {
     parent::init();
     $this->categoryId = 'General_Actions';
 }