public static function getInstance()
 {
     if (!self::$multiStationReportMgr) {
         self::$multiStationReportMgr = new MultiStationReportMgr();
         return self::$multiStationReportMgr;
     }
     return self::$multiStationReportMgr;
 }
Пример #2
0
    $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) {
    $stationRepMgr = MultiStationReportMgr::getInstance();
    $recentJSON = $stationRepMgr->getRecentReport($_GET);
    echo json_encode($recentJSON);
}
if ($method == $SAVE_COMMENTS_MASTER) {
    $commentsMgr = CommentsMgr::getInstance();
    $res = $commentsMgr->saveCommentsMaster($_GET);
    echo json_encode($res);
}
if ($method == $REQUEST_COMMENTS_MASTER) {
    $locationSeq = $_GET['lsp'];
    session_start();
    $userLogged = new User();
    $userLogged = $_SESSION["userlogged"];
    $userSeq = $userLogged->getSeq();
    $LDS = LocationDataStore::getInstance();