本文整理汇总了PHP中DataCenter::UpdateDataCenter方法的典型用法代码示例。如果您正苦于以下问题:PHP DataCenter::UpdateDataCenter方法的具体用法?PHP DataCenter::UpdateDataCenter怎么用?PHP DataCenter::UpdateDataCenter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataCenter
的用法示例。
在下文中一共展示了DataCenter::UpdateDataCenter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$nodept = $nodeptdrop = "";
}
// Data Centers Form Submission
if (isset($_REQUEST['dcaction']) && ($_REQUEST['dcaction'] == 'Create' || $_REQUEST['dcaction'] == 'Update')) {
$dc->DataCenterID = $_REQUEST['datacenterid'];
$dc->Name = $_REQUEST['name'];
$dc->SquareFootage = $_REQUEST['squarefootage'];
$dc->DeliveryAddress = $_REQUEST['deliveryaddress'];
$dc->Administrator = $_REQUEST['administrator'];
$dc->DrawingFileName = $_REQUEST['drawingfilename'];
if ($_REQUEST['dcaction'] == 'Create') {
if (!$dc->CreateDataCenter()) {
$errormsg = "<h3>Datacenter not created, check the apache error log</h3>";
}
} else {
$dc->UpdateDataCenter();
}
}
if (isset($_REQUEST['datacenterid']) && $_REQUEST['datacenterid'] > 0) {
$dc->DataCenterID = $_REQUEST['datacenterid'];
$dc->GetDataCenter();
}
$dcList = $dc->GetDCList();
$result = $dbh->prepare("SELECT * FROM fac_DataCenter LIMIT 1;");
$result->execute();
if ($result->rowCount() == 0) {
// No data centers configured disable cabinets and complete options
$nodc = "<h3>Define a data center</h3>";
$nodc .= isset($errormsg) ? $errormsg : "";
$nodccab = "<h3>You must create a Data Center before you can create cabinets in it.</h3>";
$nodcfield = "disabled";