本文整理匯總了PHP中DataCenter::GetDCStatistics方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataCenter::GetDCStatistics方法的具體用法?PHP DataCenter::GetDCStatistics怎麽用?PHP DataCenter::GetDCStatistics使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DataCenter
的用法示例。
在下文中一共展示了DataCenter::GetDCStatistics方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: MakeImageMap
$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);
function MakeImageMap($dc)
{
$mapHTML = "";
if (strlen($dc->DrawingFileName) > 0) {
$mapfile = "drawings" . DIRECTORY_SEPARATOR . $dc->DrawingFileName;
if (file_exists($mapfile)) {
list($width, $height, $type, $attr) = getimagesize($mapfile);
$mapHTML = "<div class=\"canvas\" style=\"background-image: url('drawings/{$dc->DrawingFileName}')\">\n\t<img src=\"css/blank.gif\" usemap=\"#datacenter\" width=\"{$width}\" height=\"{$height}\" alt=\"clearmap over canvas\">\n\t<map name=\"datacenter\" data-dc={$dc->DataCenterID} data-zoom=1 data-x1=0 data-y1=0>\n\t</map>\n\t<canvas id=\"mapCanvas\" width=\"{$width}\" height=\"{$height}\"></canvas>\n\n</div>\n";
}
}
return $mapHTML;
}
$height = 0;
$width = 0;