本文整理汇总了PHP中Computer_Item::unglobalizeItem方法的典型用法代码示例。如果您正苦于以下问题:PHP Computer_Item::unglobalizeItem方法的具体用法?PHP Computer_Item::unglobalizeItem怎么用?PHP Computer_Item::unglobalizeItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Computer_Item
的用法示例。
在下文中一共展示了Computer_Item::unglobalizeItem方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sprintf
$monitor->restore($_POST);
Event::log($_POST["id"], "monitors", 4, "inventory", sprintf(__('%s restores an item'), $_SESSION["glpiname"]));
$monitor->redirectToList();
} else {
if (isset($_POST["purge"])) {
$monitor->check($_POST["id"], 'd');
$monitor->delete($_POST, 1);
Event::log($_POST["id"], "monitors", 4, "inventory", sprintf(__('%s purges an item'), $_SESSION["glpiname"]));
$monitor->redirectToList();
} else {
if (isset($_POST["update"])) {
$monitor->check($_POST["id"], 'w');
$monitor->update($_POST);
Event::log($_POST["id"], "monitors", 4, "inventory", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
Html::back();
} else {
if (isset($_POST["unglobalize"])) {
$monitor->check($_POST["id"], 'w');
Computer_Item::unglobalizeItem($monitor);
Event::log($_POST["id"], "monitors", 4, "inventory", sprintf(__('%s sets unitary management'), $_SESSION["glpiname"]));
Html::redirect($CFG_GLPI["root_doc"] . "/front/monitor.form.php?id=" . $_POST["id"]);
} else {
Html::header(Monitor::getTypeName(2), $_SERVER['PHP_SELF'], "inventory", "monitor");
$monitor->showForm($_GET["id"], array('withtemplate' => $_GET["withtemplate"]));
Html::footer();
}
}
}
}
}
}
示例2: sprintf
$peripheral->restore($_POST);
Event::log($_POST["id"], "peripherals", 4, "inventory", sprintf(__('%s restores an item'), $_SESSION["glpiname"]));
$peripheral->redirectToList();
} else {
if (isset($_POST["purge"])) {
$peripheral->check($_POST["id"], PURGE);
$peripheral->delete($_POST, 1);
Event::log($_POST["id"], "peripherals", 4, "inventory", sprintf(__('%s purges an item'), $_SESSION["glpiname"]));
$peripheral->redirectToList();
} else {
if (isset($_POST["update"])) {
$peripheral->check($_POST["id"], UPDATE);
$peripheral->update($_POST);
Event::log($_POST["id"], "peripherals", 4, "inventory", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
Html::back();
} else {
if (isset($_POST["unglobalize"])) {
$peripheral->check($_POST["id"], UPDATE);
Computer_Item::unglobalizeItem($peripheral);
Event::log($_POST["id"], "peripherals", 4, "inventory", sprintf(__('%s sets unitary management'), $_SESSION["glpiname"]));
Html::redirect($CFG_GLPI["root_doc"] . "/front/peripheral.form.php?id=" . $_POST["id"]);
} else {
Html::header(Peripheral::getTypeName(Session::getPluralNumber()), $_SERVER['PHP_SELF'], "assets", "peripheral");
$peripheral->display(array('id' => $_GET["id"], 'withtemplate' => $_GET["withtemplate"]));
Html::footer();
}
}
}
}
}
}
示例3: glpi_header
$print->restore($_POST);
Event::log($_POST["id"], "printers", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][23]);
$print->redirectToList();
} else {
if (isset($_REQUEST["purge"])) {
$print->check($_REQUEST["id"], 'd');
$print->delete($_REQUEST, 1);
Event::log($_REQUEST["id"], "printers", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][24]);
$print->redirectToList();
} else {
if (isset($_POST["update"])) {
$print->check($_POST["id"], 'w');
$print->update($_POST);
Event::log($_POST["id"], "printers", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][21]);
glpi_header($_SERVER['HTTP_REFERER']);
} else {
if (isset($_GET["unglobalize"])) {
$print->check($_GET["id"], 'w');
Computer_Item::unglobalizeItem($print);
Event::log($_GET["id"], "printers", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][60]);
glpi_header($CFG_GLPI["root_doc"] . "/front/printer.form.php?id=" . $_GET["id"]);
} else {
commonHeader($LANG['Menu'][2], $_SERVER['PHP_SELF'], "inventory", "printer");
$print->showForm($_GET["id"], array('withtemplate' => $_GET["withtemplate"]));
commonFooter();
}
}
}
}
}
}
示例4: glpi_header
$phone->restore($_POST);
Event::log($_POST["id"], "phones", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][23]);
$phone->redirectToList();
} else {
if (isset($_REQUEST["purge"])) {
$phone->check($_REQUEST["id"], 'd');
$phone->delete($_REQUEST, 1);
Event::log($_REQUEST["id"], "phones", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][24]);
$phone->redirectToList();
} else {
if (isset($_POST["update"])) {
$phone->check($_POST["id"], 'w');
$phone->update($_POST);
Event::log($_POST["id"], "phones", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][21]);
glpi_header($_SERVER['HTTP_REFERER']);
} else {
if (isset($_GET["unglobalize"])) {
$phone->check($_GET["id"], 'w');
Computer_Item::unglobalizeItem($phone);
Event::log($_GET["id"], "phones", 4, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][60]);
glpi_header($CFG_GLPI["root_doc"] . "/front/phone.form.php?id=" . $_GET["id"]);
} else {
commonHeader($LANG['help'][35], $_SERVER['PHP_SELF'], "inventory", "phone");
$phone->showForm($_GET["id"], array('withtemplate' => $_GET["withtemplate"]));
commonFooter();
}
}
}
}
}
}