本文整理匯總了PHP中Phone::update方法的典型用法代碼示例。如果您正苦於以下問題:PHP Phone::update方法的具體用法?PHP Phone::update怎麽用?PHP Phone::update使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Phone
的用法示例。
在下文中一共展示了Phone::update方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: commonHeader
} else {
if (isset($_POST["restore"])) {
$phone->check($_POST["id"], 'd');
$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();
}
}
}