Piwik\Plugins\Insights\Visualizations\Insight::beforeLoadDataTable PHP Метод

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

public beforeLoadDataTable ( )
    public function beforeLoadDataTable()
    {
        if (!self::canDisplayViewDataTable($this)) {
            return;
        }
        if (!$this->requestConfig->filter_limit) {
            $this->requestConfig->filter_limit = 10;
        }
        $report = $this->requestConfig->apiMethodToRequestDataTable;
        $report = str_replace('.', '_', $report);
        if (!empty($this->requestConfig->request_parameters_to_modify['reportUniqueId'])) {
            $report = $this->requestConfig->request_parameters_to_modify['reportUniqueId'];
        }
        $this->requestConfig->apiMethodToRequestDataTable = 'Insights.getInsights';
        $this->requestConfig->request_parameters_to_modify = array('reportUniqueId' => $report, 'minImpactPercent' => $this->requestConfig->min_impact_percent, 'minGrowthPercent' => $this->requestConfig->min_growth_percent, 'comparedToXPeriods' => $this->requestConfig->compared_to_x_periods_ago, 'orderBy' => $this->requestConfig->order_by, 'filterBy' => $this->requestConfig->filter_by, 'limitIncreaser' => $this->getLimitIncrease(), 'limitDecreaser' => $this->getLimitDecrease());
    }