private function getGoalsForIdSite($idSite) { if (empty($idSite)) { return array(); } return API::getInstance()->getGoals($idSite); }