public function showAllTrunksIpAccessList($trunkId) { $ossbss = new Ossbss(); $inputs['sipTrunkId'] = $trunkId; $result = $ossbss->getInfo("trunks.allTrunksIpList", $inputs, $trunkId); $result = unsetParam($result, 'msg', 'paging', 'flag'); return json_encode($result); }
public function showList() { $ossbss = new Ossbss(); $start = $_GET['start']; $length = $_GET['length']; $inputs['offset'] = 0; $inputs['limit'] = 10; $result = $ossbss->getInfo('clientApps.showList', $inputs); $result = unsetParam($result, "msg"); return json_encode($result); }
public function index(Request $request) { $a = $request->only('page'); if ($a['page'] == null) { $page = 1; } else { $inputs = $request->only('page'); //只获取页码数 $page = $inputs['page']; } $offset = ($page - 1) * $this->_perNums; $data['offset'] = $offset; $data['limit'] = $this->_perNums; $ossbss = new Ossbss(); $res = $ossbss->getInfo("numbers.showList", $data); $res['data'] = isset($res['data']) ? $res['data'] : array(); return view('test/testing', array("active" => "menu_number , menu_number_listing", "pagetitle" => "Numbers Listing", 'listDatas' => $res['data'])); }
/** * show the selected ServerApps * @param string $id * @return string */ public function showData($id) { $params[0] = $id; $inputs['id'] = $id; $ossbss = new Ossbss(); $result = $ossbss->getInfo('serverApps.editServerApp', $inputs, $params); $result = unsetParam($result, "msg"); return json_encode($result); }
public function showAssignedSelectedNumList($inputs) { $ossbss = new Ossbss(); $params['sipTrunkId'] = $inputs['sip_trunk_id']; $result = $ossbss->getInfo("trunks.AssignedPhoneNumbers", $inputs, $params); $result = unsetParam($result, "msg"); return json_encode($result); }