original_string: public function beforeRender()
      {
          $this->config->show_as_content_block = false;
          $this->config->title = Piwik::translate('Live_VisitorLog');
          $this->config->disable_row_actions = true;
          $this->config->datatable_js_type = 'VisitorLog';
          $this->config->enable_sort       = false;
          $this->config->show_search       = false;
          $this->config->show_exclude_low_population = false;
          $this->config->show_offset_information     = false;
          $this->config->show_all_views_icons        = false;
          $this->config->show_table_all_columns      = false;
          $this->config->show_export_as_rss_feed     = false;
          $this->config->disable_all_rows_filter_limit = true;
  
          $this->config->documentation = Piwik::translate('Live_VisitorLogDocumentation', array('<br />', '<br />'));
  
          if (!is_array($this->config->custom_parameters)) {
              $this->config->custom_parameters = array();
          }
  
          // ensure to show next link if there are enough rows for a next page
          if ($this->dataTable->getRowsCount() > $this->requestConfig->filter_limit) {
              $this->dataTable->deleteRowsOffset($this->requestConfig->filter_limit);
              $this->config->custom_parameters['totalRows'] = 10000000;
          }
  
          $this->config->custom_parameters['smallWidth'] = (1 == Common::getRequestVar('small', 0, 'int'));
          $this->config->custom_parameters['hideProfileLink'] = (1 == Common::getRequestVar('hideProfileLink', 0, 'int'));
          $this->config->custom_parameters['pageUrlNotDefined'] = Piwik::translate('General_NotDefined', Piwik::translate('Actions_ColumnPageURL'));
  
          $this->config->footer_icons = array(
              array(
                  'class'   => 'tableAllColumnsSwitch',
                  'buttons' => array(
                      array(
                          'id'    => static::ID,
                          'title' => Piwik::translate('Live_LinkVisitorLog'),
                          'icon'  => 'plugins/Morpheus/images/table.png'
                      )
                  )
              )
          );
  
          $enableAddNewSegment = Common::getRequestVar('enableAddNewSegment', false);
          if ($enableAddNewSegment) {
              $this->config->datatable_actions[] = [
                  'id' => 'addSegmentToMatomo',
                  'title' => Piwik::translate('SegmentEditor_AddThisToMatomo'),
                  'icon' => 'icon-segment',
              ];
          }
      }
code: public function beforeRender()
      {
          $this->config->show_as_content_block = false;
          $this->config->title = Piwik::translate('Live_VisitorLog');
          $this->config->disable_row_actions = true;
          $this->config->datatable_js_type = 'VisitorLog';
          $this->config->enable_sort       = false;
          $this->config->show_search       = false;
          $this->config->show_exclude_low_population = false;
          $this->config->show_offset_information     = false;
          $this->config->show_all_views_icons        = false;
          $this->config->show_table_all_columns      = false;
          $this->config->show_export_as_rss_feed     = false;
          $this->config->disable_all_rows_filter_limit = true;
  
          $this->config->documentation = Piwik::translate('Live_VisitorLogDocumentation', array('<br />', '<br />'));
  
          if (!is_array($this->config->custom_parameters)) {
              $this->config->custom_parameters = array();
          }
  
          // ensure to show next link if there are enough rows for a next page
          if ($this->dataTable->getRowsCount() > $this->requestConfig->filter_limit) {
              $this->dataTable->deleteRowsOffset($this->requestConfig->filter_limit);
              $this->config->custom_parameters['totalRows'] = 10000000;
          }
  
          $this->config->custom_parameters['smallWidth'] = (1 == Common::getRequestVar('small', 0, 'int'));
          $this->config->custom_parameters['hideProfileLink'] = (1 == Common::getRequestVar('hideProfileLink', 0, 'int'));
          $this->config->custom_parameters['pageUrlNotDefined'] = Piwik::translate('General_NotDefined', Piwik::translate('Actions_ColumnPageURL'));
  
          $this->config->footer_icons = array(
              array(
                  'class'   => 'tableAllColumnsSwitch',
                  'buttons' => array(
                      array(
                          'id'    => static::ID,
                          'title' => Piwik::translate('Live_LinkVisitorLog'),
                          'icon'  => 'plugins/Morpheus/images/table.png'
                      )
                  )
              )
          );
  
          $enableAddNewSegment = Common::getRequestVar('enableAddNewSegment', false);
          if ($enableAddNewSegment) {
              $this->config->datatable_actions[] = [
                  'id' => 'addSegmentToMatomo',
                  'title' => Piwik::translate('SegmentEditor_AddThisToMatomo'),
                  'icon' => 'icon-segment',
              ];
          }
      }
code_tokens: public function beforeRender ( ) { $ this -> config -> show_as_content_block = false ; $ this -> config -> title = Piwik :: translate ( 'Live_VisitorLog' ) ; $ this -> config -> disable_row_actions = true ; $ this -> config -> datatable_js_type = 'VisitorLog' ; $ this -> config -> enable_sort = false ; $ this -> config -> show_search = false ; $ this -> config -> show_exclude_low_population = false ; $ this -> config -> show_offset_information = false ; $ this -> config -> show_all_views_icons = false ; $ this -> config -> show_table_all_columns = false ; $ this -> config -> show_export_as_rss_feed = false ; $ this -> config -> disable_all_rows_filter_limit = true ; $ this -> config -> documentation = Piwik :: translate ( 'Live_VisitorLogDocumentation' , array ( '<br />' , '<br />' ) ) ; if ( ! is_array ( $ this -> config -> custom_parameters ) ) { $ this -> config -> custom_parameters = array ( ) ; } // ensure to show next link if there are enough rows for a next page if ( $ this -> dataTable -> getRowsCount ( ) > $ this -> requestConfig -> filter_limit ) { $ this -> dataTable -> deleteRowsOffset ( $ this -> requestConfig -> filter_limit ) ; $ this -> config -> custom_parameters [ 'totalRows' ] = 10000000 ; } $ this -> config -> custom_parameters [ 'smallWidth' ] = ( 1 == Common :: getRequestVar ( 'small' , 0 , 'int' ) ) ; $ this -> config -> custom_parameters [ 'hideProfileLink' ] = ( 1 == Common :: getRequestVar ( 'hideProfileLink' , 0 , 'int' ) ) ; $ this -> config -> custom_parameters [ 'pageUrlNotDefined' ] = Piwik :: translate ( 'General_NotDefined' , Piwik :: translate ( 'Actions_ColumnPageURL' ) ) ; $ this -> config -> footer_icons = array ( array ( 'class' => 'tableAllColumnsSwitch' , 'buttons' => array ( array ( 'id' => static :: ID , 'title' => Piwik :: translate ( 'Live_LinkVisitorLog' ) , 'icon' => 'plugins/Morpheus/images/table.png' ) ) ) ) ; $ enableAddNewSegment = Common :: getRequestVar ( 'enableAddNewSegment' , false ) ; if ( $ enableAddNewSegment ) { $ this -> config -> datatable_actions [ ] = [ 'id' => 'addSegmentToMatomo' , 'title' => Piwik :: translate ( 'SegmentEditor_AddThisToMatomo' ) , 'icon' => 'icon-segment' , ] ; } }
docstring: Configure visualization.
docstring_tokens: Configure visualization .