本文整理匯總了PHP中Zone::UpdateZone方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zone::UpdateZone方法的具體用法?PHP Zone::UpdateZone怎麽用?PHP Zone::UpdateZone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zone
的用法示例。
在下文中一共展示了Zone::UpdateZone方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
if (isset($_REQUEST["zoneid"])) {
$zone->ZoneID = isset($_POST['zoneid']) ? $_POST['zoneid'] : $_GET['zoneid'];
$zone->GetZone();
if (isset($_POST["action"]) && ($_POST["action"] == "Create" || $_POST["action"] == "Update")) {
$zone->Description = $_POST["description"];
$zone->DataCenterID = $_POST["datacenterid"];
$zone->MapX1 = $_POST["x1"];
$zone->MapY1 = $_POST["y1"];
$zone->MapX2 = $_POST["x2"];
$zone->MapY2 = $_POST["y2"];
$zone->MapZoom = $_POST["mapzoom"];
if ($_POST["action"] == "Create") {
$zone->CreateZone();
} else {
$status = __("Updated");
$zone->UpdateZone();
}
}
$formpatch = "?zoneid={$zone->ZoneID}";
}
$zone->MapZoom = $zone->ZoneID == 0 ? 100 : $zone->MapZoom;
$dc_zone->DataCenterID = $zone->DataCenterID;
$dc_zone->GetDataCenterbyID();
$zoneList = $zone->GetZoneList();
$height = 0;
$width = 0;
if (strlen($dc_zone->DrawingFileName) > 0) {
$mapfile = "drawings/{$dc_zone->DrawingFileName}";
if (file_exists($mapfile)) {
list($width, $height, $type, $attr) = getimagesize($mapfile);
// There is a bug in the excanvas shim that can set the width of the canvas to 10x the width of the image