public static function getInstance()
 {
     if (!self::$flowReportMgr) {
         self::$flowReportMgr = new EffluentCumulativeFlowReportMgr();
         return self::$flowReportMgr;
     }
     return self::$flowReportMgr;
 }
Esempio n. 2
0
        }
        $chArr[$channel->getChannelNumber()] = $chName;
    }
    if ($folSeq == "48") {
        $comments = "<p><a target='new' href='http://123.63.167.133:8011'>Live Video For MCL</a></p><H3>Use the above link to view live video feed. <br>You can use username as MCL_KOTA and password as MCLKOTA</h3><p>Note: open this link on Internet Explorer and install plug-in first time.</p>";
        $chArr['video'] = $comments;
    }
    $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);