本文整理匯總了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;