uninstall() 공개 메소드

UnLink the cartridge identified by $ID
public uninstall ( $ID ) : boolean
$ID : cartridge identifier
리턴 boolean
예제 #1
0
            }
            glpi_header($_SERVER['HTTP_REFERER']);
        } else {
            if (isset($_GET["restore"])) {
                $cartype->check($_GET["tID"], 'w');
                if ($cart->restore($_GET)) {
                    Event::log($_GET["tID"], "cartridges", 5, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][92]);
                }
                glpi_header($_SERVER['HTTP_REFERER']);
            } else {
                if (isset($_POST["install"])) {
                    $cartype->check($_POST["tID"], 'w');
                    if ($cart->install($_POST["pID"], $_POST["tID"])) {
                        Event::log($_POST["tID"], "cartridges", 5, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][95]);
                    }
                    glpi_header($CFG_GLPI["root_doc"] . "/front/printer.form.php?id=" . $_POST["pID"]);
                } else {
                    if (isset($_GET["uninstall"])) {
                        $cartype->check($_GET["tID"], 'w');
                        if ($cart->uninstall($_GET["id"])) {
                            Event::log($_GET["tID"], "cartridges", 5, "inventory", $_SESSION["glpiname"] . " " . $LANG['log'][96]);
                        }
                        glpi_header($_SERVER['HTTP_REFERER']);
                    } else {
                        glpi_header($_SERVER['HTTP_REFERER']);
                    }
                }
            }
        }
    }
}