init() protected method

protected init ( )
Example #1
0
 protected function init()
 {
     parent::init();
     $this->name = Piwik::translate('UserId_UserReportTitle');
     $this->subcategoryId = 'UserId_UserReportTitle';
     $this->documentation = '';
     $this->dimension = new UserId();
     $this->metrics = array('label', 'nb_visits', 'nb_actions', 'nb_visits_converted');
     // This defines in which order your report appears in the mobile app, in the menu and in the list of widgets
     $this->order = 9;
 }