本文整理汇总了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();
}
}
}