本文整理汇总了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;