public static function getInstance()
 {
     if (!self::$windRoseReportMgr) {
         self::$windRoseReportMgr = new WindRoseReportMgr();
         return self::$windRoseReportMgr;
     }
     return self::$windRoseReportMgr;
 }
Beispiel #2
0
    if ($_GET['isMultiStation'] != null) {
        if ($_GET['iscumulative'] != null) {
            $stationRepMgr = EffluentCumulativeFlowReportMgr::getInstance();
            $rep = $stationRepMgr->getCumulativeReport($_GET);
        } else {
            $stationRepMgr = MultiStationReportMgr::getInstance();
            $rep = $stationRepMgr->getMultiStationReport($_GET);
        }
    } else {
        $stationRepMgr = StationReportMgr::getInstance();
        $rep = $stationRepMgr->getStationReport($_GET);
    }
    echo json_encode($rep);
}
if ($method == $REQUEST_WIND_ROSE_JSON) {
    $windRoseReportMgr = WindRoseReportMgr::getInstance();
    $windRosePlot = $windRoseReportMgr->getWindRoseReport($_GET);
    echo json_encode($windRosePlot);
}
if ($method == $REQUEST_MAP_LOCATIONS_JSON) {
    session_start();
    $userLogged = new User();
    $userLogged = $_SESSION["userlogged"];
    $isLoggedIn = $_GET['isLoggedIn'];
    $cpcbMgr = CPCBMgr::getInstance();
    $UDS = UserDataStore::getInstance();
    $folderSeqs = $UDS->getAllFolderSeqs($userLogged->getSeq());
    $mapJSON = $cpcbMgr->getCPCBMapsJson($isLoggedIn, $folderSeqs);
    echo json_encode($mapJSON);
}
if ($method == $REQUEST_STATIONS_RECENT) {