Piwik\Plugin\ViewDataTable::overrideViewPropertiesWithQueryParams PHP Method

overrideViewPropertiesWithQueryParams() private method

    private function overrideViewPropertiesWithQueryParams()
    {
        $properties = $this->getOverridableProperties();
        foreach ($properties as $name) {
            if (property_exists($this->requestConfig, $name)) {
                $this->requestConfig->{$name} = $this->getPropertyFromQueryParam($name, $this->requestConfig->{$name});
            } elseif (property_exists($this->config, $name)) {
                $this->config->{$name} = $this->getPropertyFromQueryParam($name, $this->config->{$name});
            }
        }
        // handle special 'columns' query parameter
        $columns = Common::getRequestVar('columns', false);
        if (false !== $columns) {
            $this->config->columns_to_display = Piwik::getArrayFromApiParameter($columns);
            array_unshift($this->config->columns_to_display, 'label');
        }
    }