Piwik\Plugins\Goals\Visualizations\Goals::setShowGoalsColumnsProperties PHP Method

setShowGoalsColumnsProperties() private method

    private function setShowGoalsColumnsProperties()
    {
        // set view properties based on goal requested
        $idSite = Common::getRequestVar('idSite', null, 'int');
        $idGoal = Common::getRequestVar('idGoal', AddColumnsProcessedMetricsGoal::GOALS_OVERVIEW, 'string');
        $goalsToProcess = null;
        if (Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER == $idGoal) {
            $this->setPropertiesForEcommerceView();
            $goalsToProcess = array($idGoal);
        } else {
            if (AddColumnsProcessedMetricsGoal::GOALS_FULL_TABLE == $idGoal) {
                $this->setPropertiesForGoals($idSite, 'all');
                $goalsToProcess = $this->getAllGoalIds($idSite);
            } else {
                if (AddColumnsProcessedMetricsGoal::GOALS_OVERVIEW == $idGoal) {
                    $this->setPropertiesForGoalsOverview($idSite);
                    $goalsToProcess = $this->getAllGoalIds($idSite);
                } else {
                    $this->setPropertiesForGoals($idSite, array($idGoal));
                    $goalsToProcess = array($idGoal);
                }
            }
        }
        // add goals columns
        $this->config->filters[] = array('AddColumnsProcessedMetricsGoal', array($enable = true, $idGoal, $goalsToProcess), $priority = true);
    }