public function listAction() { /* $node = isset($_GET["node"]) ? $_GET["node"] : ""; $idc = isset($_GET["idc"]) ? $_GET["idc"] : ""; $main_buss_id = isset($_GET["main_buss_id"]) ? $_GET["main_buss_id"] : ""; $sub_buss_id = isset($_GET["sub_buss_id"]) ? $_GET["sub_buss_id"] : ""; $op_user = isset($_GET["op_user"]) ? $_GET["op_user"] : ""; */ $main_buss_id = $this->getRequest("main_buss_id", ""); $sub_buss_id = $this->getRequest("sub_buss_id", ""); $query = $this->getRequest("query", ""); $page = $this->getRequest("page", 1); $page_count = $this->getRequest("pageCount", 20); // 1. parameter is not right if ($main_buss_id === "") { $res = InfoDescUtil::getErrorMsg(InfoDescUtil::ERR_BAD_ARGS); QconfMgrLog::err(__FILE__, __LINE__, "parameter 'main_buss_id' is null!"); echo json_encode($res); return; } $data = OpServ::listByQuery($query, $main_buss_id, $sub_buss_id, $page, $page_count); if ($data === FALSE) { $res = InfoDescUtil::getErrorMsg(InfoDescUtil::ERR_NODE_NOT_EXIST); QconfMgrLog::err(__FILE__, __LINE__, "query '{$query}', main_buss_id: {$main_buss_id} is NULL!"); echo json_encode($res); return; } $res = array("errno" => "0", "errmsg" => "", "data" => $data); $json = json_encode($res); echo $json; }