當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Computer_Item::unglobalizeItem方法代碼示例

本文整理匯總了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();
                    }
                }
            }
        }
    }
}
開發者ID:gaforeror,項目名稱:glpi,代碼行數:31,代碼來源:monitor.form.php

示例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();
                    }
                }
            }
        }
    }
}
開發者ID:btry,項目名稱:glpi,代碼行數:31,代碼來源:peripheral.form.php

示例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();
                    }
                }
            }
        }
    }
}
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:31,代碼來源:printer.form.php

示例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();
                    }
                }
            }
        }
    }
}
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:31,代碼來源:phone.form.php


注:本文中的Computer_Item::unglobalizeItem方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。