original_string: public static function configureFooterIcons(ViewDataTable $view)
      {
          $result = array();
  
          $normalViewIcons = self::getNormalViewIcons($view);
  
          if (!empty($normalViewIcons['buttons'])) {
              $result[] = $normalViewIcons;
          }
  
          // add insight views
          $insightsViewIcons = array(
              'class'   => 'tableInsightViews',
              'buttons' => array(),
          );
  
          $graphViewIcons = self::getGraphViewIcons($view);
  
          $nonCoreVisualizations = static::getNonCoreViewDataTables();
  
          foreach ($nonCoreVisualizations as $id => $klass) {
              if ($klass::canDisplayViewDataTable($view)) {
                  $footerIcon = static::getFooterIconFor($id);
                  if (Insight::ID == $footerIcon['id']) {
                      $insightsViewIcons['buttons'][] = static::getFooterIconFor($id);
                  } else {
                      $graphViewIcons['buttons'][] = static::getFooterIconFor($id);
                  }
              }
          }
  
          $graphViewIcons['buttons'] = array_filter($graphViewIcons['buttons']);
  
          if (!empty($insightsViewIcons['buttons'])
              && $view->config->show_insights
          ) {
              $result[] = $insightsViewIcons;
          }
  
          if (!empty($graphViewIcons['buttons'])) {
              $result[] = $graphViewIcons;
          }
  
          return $result;
      }
code: public static function configureFooterIcons(ViewDataTable $view)
      {
          $result = array();
  
          $normalViewIcons = self::getNormalViewIcons($view);
  
          if (!empty($normalViewIcons['buttons'])) {
              $result[] = $normalViewIcons;
          }
  
          // add insight views
          $insightsViewIcons = array(
              'class'   => 'tableInsightViews',
              'buttons' => array(),
          );
  
          $graphViewIcons = self::getGraphViewIcons($view);
  
          $nonCoreVisualizations = static::getNonCoreViewDataTables();
  
          foreach ($nonCoreVisualizations as $id => $klass) {
              if ($klass::canDisplayViewDataTable($view)) {
                  $footerIcon = static::getFooterIconFor($id);
                  if (Insight::ID == $footerIcon['id']) {
                      $insightsViewIcons['buttons'][] = static::getFooterIconFor($id);
                  } else {
                      $graphViewIcons['buttons'][] = static::getFooterIconFor($id);
                  }
              }
          }
  
          $graphViewIcons['buttons'] = array_filter($graphViewIcons['buttons']);
  
          if (!empty($insightsViewIcons['buttons'])
              && $view->config->show_insights
          ) {
              $result[] = $insightsViewIcons;
          }
  
          if (!empty($graphViewIcons['buttons'])) {
              $result[] = $graphViewIcons;
          }
  
          return $result;
      }
code_tokens: public static function configureFooterIcons ( ViewDataTable $ view ) { $ result = array ( ) ; $ normalViewIcons = self :: getNormalViewIcons ( $ view ) ; if ( ! empty ( $ normalViewIcons [ 'buttons' ] ) ) { $ result [ ] = $ normalViewIcons ; } // add insight views $ insightsViewIcons = array ( 'class' => 'tableInsightViews' , 'buttons' => array ( ) , ) ; $ graphViewIcons = self :: getGraphViewIcons ( $ view ) ; $ nonCoreVisualizations = static :: getNonCoreViewDataTables ( ) ; foreach ( $ nonCoreVisualizations as $ id => $ klass ) { if ( $ klass :: canDisplayViewDataTable ( $ view ) ) { $ footerIcon = static :: getFooterIconFor ( $ id ) ; if ( Insight :: ID == $ footerIcon [ 'id' ] ) { $ insightsViewIcons [ 'buttons' ] [ ] = static :: getFooterIconFor ( $ id ) ; } else { $ graphViewIcons [ 'buttons' ] [ ] = static :: getFooterIconFor ( $ id ) ; } } } $ graphViewIcons [ 'buttons' ] = array_filter ( $ graphViewIcons [ 'buttons' ] ) ; if ( ! empty ( $ insightsViewIcons [ 'buttons' ] ) && $ view -> config -> show_insights ) { $ result [ ] = $ insightsViewIcons ; } if ( ! empty ( $ graphViewIcons [ 'buttons' ] ) ) { $ result [ ] = $ graphViewIcons ; } return $ result ; }
docstring: This method determines the default set of footer icons to display below a report.
  
  $result has the following format:
  
  ```
  array(
  array( // footer icon group 1
  'class' => 'footerIconGroup1CssClass',
  'buttons' => array(
  'id' => 'myid',
  'title' => 'My Tooltip',
  'icon' => 'path/to/my/icon.png'
  )
  ),
  array( // footer icon group 2
  'class' => 'footerIconGroup2CssClass',
  'buttons' => array(...)
  ),
  ...
  )
  ```
docstring_tokens: This method determines the default set of footer icons to display below a report .