public static function getInstance()
 {
     if (!self::$stationReportMgr) {
         self::$stationReportMgr = new StationReportMgr();
         return self::$stationReportMgr;
     }
     return self::$stationReportMgr;
 }
Beispiel #2
0
    $data["channels"] = $chArr;
    $data["folderInfo"] = $info;
    echo json_encode($data);
}
if ($method == $REQUEST_STATION_REPORT) {
    $rep = null;
    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();