public function deleteSiteReport($idSite)
    {
        $idReports = API::getInstance()->getReports($idSite);

        foreach ($idReports as $report) {
            $idReport = $report['idreport'];
            API::getInstance()->deleteReport($idReport);
        }
    }
public function deleteSiteReport($idSite)
    {
        $idReports = API::getInstance()->getReports($idSite);

        foreach ($idReports as $report) {
            $idReport = $report['idreport'];
            API::getInstance()->deleteReport($idReport);
        }
    }
public function deleteSiteReport ( $ idSite ) { $ idReports = API :: getInstance ( ) -> getReports ( $ idSite ) ; foreach ( $ idReports as $ report ) { $ idReport = $ report [ 'idreport' ] ; API :: getInstance ( ) -> deleteReport ( $ idReport ) ; } }
Delete reports for the website
Delete reports for the website