Piwik\Plugins\Insights\Visualizations\Insight::beforeRender PHP Method

beforeRender() public method

public beforeRender ( )
    public function beforeRender()
    {
        $this->config->datatable_js_type = 'InsightsDataTable';
        $this->config->show_limit_control = true;
        $this->config->show_pagination_control = false;
        $this->config->show_offset_information = false;
        $this->config->show_search = false;
        $this->config->show_export_as_rss_feed = false;
        if (!self::canDisplayViewDataTable($this)) {
            $this->assignTemplateVar('cannotDisplayReport', true);
            return;
        }
        $period = Common::getRequestVar('period', null, 'string');
        $this->assignTemplateVar('period', $period);
    }