public function getGoal($idSite, $idGoal)
    {
        Piwik::checkUserHasViewAccess($idSite);
        
        $goal = $this->getModel()->getActiveGoal($idSite, $idGoal);

        if (!empty($goal)) {
            return $this->formatGoal($goal);
        }
    }
public function getGoal($idSite, $idGoal)
    {
        Piwik::checkUserHasViewAccess($idSite);
        
        $goal = $this->getModel()->getActiveGoal($idSite, $idGoal);

        if (!empty($goal)) {
            return $this->formatGoal($goal);
        }
    }
public function getGoal ( $ idSite , $ idGoal ) { Piwik :: checkUserHasViewAccess ( $ idSite ) ; $ goal = $ this -> getModel ( ) -> getActiveGoal ( $ idSite , $ idGoal ) ; if ( ! empty ( $ goal ) ) { return $ this -> formatGoal ( $ goal ) ; } }
Return a single goal.

@param int $idSite
@param int $idGoal
@return array An array of goal attributes.
Return a single goal .