本文整理汇总了PHP中Monitor::listConn方法的典型用法代码示例。如果您正苦于以下问题:PHP Monitor::listConn方法的具体用法?PHP Monitor::listConn怎么用?PHP Monitor::listConn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Monitor
的用法示例。
在下文中一共展示了Monitor::listConn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
$editdata = $furniture->FetchItem($_POST['id']);
$editdata['tags'] = $furniture->listTags($_POST['id']);
break;
case 'indicium_keys':
$editdata = $key->FetchItem($_POST['id']);
$editdata['tags'] = $key->listTags($_POST['id']);
break;
case 'indicium_cpu':
$editdata = $cpu->fetchItem($_POST['id']);
$editdata['tags'] = $cpu->listTags($_POST['id']);
$editdata['conns'] = $cpu->listConn($_POST['id']);
break;
case 'indicium_mon':
$editdata = $mon->fetchItem($_POST['id']);
$editdata['tags'] = $mon->listTags($_POST['id']);
$editdata['conns'] = $mon->listConn($_POST['id']);
break;
case 'indicium_per':
$editdata = $per->fetchItem($_POST['id']);
$editdata['tags'] = $per->listTags($_POST['id']);
$editdata['conns'] = $per->listConn($_POST['id']);
break;
}
header('Content-Type: application/json; charset=utf-8');
echo json_encode($editdata);
exit;
} elseif ($_GET['page'] === 'add') {
$data = $equip->addItem($_POST);
header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
} elseif ($_GET['page'] === 'edit') {
示例2: foreach
$_GET['dep'] = $SESSION->department;
if ($_GET['dep'] === '8') {
$cur_dep = '0';
} else {
$cur_dep = $_GET['dep'];
}
} else {
$cur_dep = $_GET['dep'];
}
$status = $_GET['status'];
$depfil = $SESSION->department;
$data = $equip->listItems($cur_dep, $_GET["status"]);
$status = $_GET['status'];
foreach ($data as $key => $d) {
$data[$key]['tag'] = $equip->listTags($data[$key]['mon_id']);
$data[$key]['conn'] = $equip->listConn($data[$key]['mon_id']);
}
$allTags = $equip->listAllTags();
$allConn = $equip->listAllConn();
$duplicatemon = $equip->listDuplMon();
$makes = $equip->listMakes();
$employees = $equip->listEmployees();
$departments = $equip->listDepartments();
$listStatus = $equip->listStatus();
$allBuildings = $equip->listAllBuildings();
$render = true;
$l10nFile = 'l10n/mon.php';
$viewFile = 'views/mon.php';
} elseif ($_GET['page'] === "fetch") {
//Fetch specific monitor information
$editdata = $equip->fetchItem($_POST['mon_id']);