CommonDBTM::cleanHistory PHP Method

cleanHistory() public method

Clean data in the tables which have linked the deleted item
public cleanHistory ( ) : nothing
return nothing
    function cleanHistory()
    {
        global $DB;
        if ($this->dohistory) {
            $query = "DELETE\n                   FROM `glpi_logs`\n                   WHERE (`itemtype` = '" . $this->getType() . "'\n                          AND `items_id` = '" . $this->fields['id'] . "')";
            $DB->query($query);
        }
    }
CommonDBTM