Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution::getRowEvolutionGraph PHP Метод

getRowEvolutionGraph() публичный Метод

Do as much as possible from outside the controller.
public getRowEvolutionGraph ( string | boolean $graphType = false, array | boolean $metrics = false ) : Factory
$graphType string | boolean
$metrics array | boolean
Результат Piwik\ViewDataTable\Factory
    public function getRowEvolutionGraph($graphType = false, $metrics = false)
    {
        // set up the view data table
        $view = Factory::build($graphType ?: $this->graphType, $this->apiMethod, $controllerAction = 'CoreHome.getRowEvolutionGraph', $forceDefault = true);
        $view->setDataTable($this->dataTable);
        if (!empty($this->graphMetrics)) {
            // In row Evolution popover, this is empty
            $view->config->columns_to_display = array_keys($metrics ?: $this->graphMetrics);
        }
        $view->requestConfig->request_parameters_to_modify['label'] = '';
        $view->config->show_goals = false;
        $view->config->show_search = false;
        $view->config->show_all_views_icons = false;
        $view->config->show_related_reports = false;
        $view->config->show_series_picker = false;
        $view->config->show_footer_message = false;
        foreach ($this->availableMetrics as $metric => $metadata) {
            $view->config->translations[$metric] = $metadata['name'];
        }
        $view->config->external_series_toggle = 'RowEvolutionSeriesToggle';
        $view->config->external_series_toggle_show_all = $this->initiallyShowAllMetrics;
        return $view;
    }