本文整理匯總了PHP中DataCenter::GetDataCenterByID方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataCenter::GetDataCenterByID方法的具體用法?PHP DataCenter::GetDataCenterByID怎麽用?PHP DataCenter::GetDataCenterByID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DataCenter
的用法示例。
在下文中一共展示了DataCenter::GetDataCenterByID方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$cab->FrontEdge = $_POST["airflow"];
$cab->UpdateCabinet();
}
}
exit;
}
if (isset($_POST['dc']) && (isset($_POST['getobjects']) || isset($_POST['getoverview']))) {
$payload = array();
if (isset($_POST['getobjects'])) {
$cab->DataCenterID = $_POST['dc'];
$zone = new Zone();
$zone->DataCenterID = $cab->DataCenterID;
$payload = array('cab' => $cab->ListCabinetsByDC(true), 'zone' => $zone->GetZonesByDC(true));
} else {
$dc->DataCenterID = $_POST['dc'];
$dc->GetDataCenterByID();
$payload = $dc->GetOverview();
}
header('Content-Type: application/json');
echo json_encode($payload);
exit;
}
if (!isset($_GET["dc"])) {
// No soup for you.
header('Location: ' . redirect());
exit;
}
$dc->DataCenterID = $_GET["dc"];
$dc->GetDataCenterbyID();
$dcStats = $dc->GetDCStatistics();
$rciStats = RCI::GetStatistics("dc", $dc->DataCenterID);