本文整理汇总了PHP中Cabinet::getStats方法的典型用法代码示例。如果您正苦于以下问题:PHP Cabinet::getStats方法的具体用法?PHP Cabinet::getStats怎么用?PHP Cabinet::getStats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cabinet
的用法示例。
在下文中一共展示了Cabinet::getStats方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: People
$audit->GetLastAudit();
if ($audit->UserID != "") {
$tmpUser = new People();
$tmpUser->UserID = $audit->UserID;
$tmpUser->GetUserRights();
$AuditorName = $tmpUser->FirstName . " " . $tmpUser->LastName;
}
$pdu->CabinetID = $cab->CabinetID;
$PDUList = $pdu->GetPDUbyCabinet();
$dev->Cabinet = $cab->CabinetID;
$devList = $dev->ViewDevicesByCabinet();
$search = new Device();
$search->Cabinet = $cab->CabinetID;
$search->DeviceType = "Sensor";
$SensorList = $search->Search();
$stats = $cab->getStats($cab->CabinetID);
$totalWatts = $stats->Wattage;
$totalWeight = $stats->Weight;
$totalMoment = 0;
if ($config->ParameterArray["ReservedColor"] != "#FFFFFF" || $config->ParameterArray["FreeSpaceColor"] != "#FFFFFF") {
$head .= "\t\t<style type=\"text/css\">\n\t\t\t.reserved {background-color: {$config->ParameterArray['ReservedColor']} !important;}\n\t\t\t.freespace {background-color: {$config->ParameterArray['FreeSpaceColor']};}\n";
// Only show reserved in the legend if the color is something other than white
if ($config->ParameterArray["ReservedColor"] != "#FFFFFF") {
$legend .= "\t\t<div class=\"legenditem hide\"><span class=\"reserved colorbox border\"></span> - " . __("Reservation") . "</div>\n";
}
if ($config->ParameterArray["FreeSpaceColor"] != "#FFFFFF") {
$legend .= '<div class="legenditem"><span class="freespace colorbox border"></span> - ' . __("Free Space") . '</div>' . "\n";
}
}
$noOwnerFlag = false;
$noTemplFlag = false;