本文整理汇总了PHP中Computer_Item::cleanDBonItemDelete方法的典型用法代码示例。如果您正苦于以下问题:PHP Computer_Item::cleanDBonItemDelete方法的具体用法?PHP Computer_Item::cleanDBonItemDelete怎么用?PHP Computer_Item::cleanDBonItemDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Computer_Item
的用法示例。
在下文中一共展示了Computer_Item::cleanDBonItemDelete方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cleanDBonPurge
function cleanDBonPurge()
{
global $DB;
$ci = new Computer_Item();
$ci->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
$ip = new Item_Problem();
$ip->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
$ci = new Change_Item();
$ci->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
$ip = new Item_Project();
$ip->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
Item_Devices::cleanItemDeviceDBOnItemDelete($this->getType(), $this->fields['id'], !empty($this->input['keep_devices']));
}
示例2: cleanDBonPurge
function cleanDBonPurge()
{
global $DB;
$ci = new Computer_Item();
$ci->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
$query = "UPDATE `glpi_cartridges`\n SET `printers_id` = NULL\n WHERE `printers_id` = '" . $this->fields['id'] . "'";
$result = $DB->query($query);
$ip = new Item_Problem();
$ip->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
$ci = new Change_Item();
$ci->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
$ip = new Item_Project();
$ip->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
Item_Devices::cleanItemDeviceDBOnItemDelete($this->getType(), $this->fields['id'], !empty($this->input['keep_devices']));
}
示例3: cleanDBonPurge
function cleanDBonPurge()
{
$csv = new Computer_SoftwareVersion();
$csv->cleanDBonItemDelete('Computer', $this->fields['id']);
$csl = new Computer_SoftwareLicense();
$csl->cleanDBonItemDelete('Computer', $this->fields['id']);
$ip = new Item_Problem();
$ip->cleanDBonItemDelete('Computer', $this->fields['id']);
$ci = new Change_Item();
$ci->cleanDBonItemDelete('Computer', $this->fields['id']);
$ip = new Item_Project();
$ip->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
$ci = new Computer_Item();
$ci->cleanDBonItemDelete('Computer', $this->fields['id']);
Item_Devices::cleanItemDeviceDBOnItemDelete($this->getType(), $this->fields['id'], !empty($this->input['keep_devices']));
$disk = new ComputerDisk();
$disk->cleanDBonItemDelete('Computer', $this->fields['id']);
$vm = new ComputerVirtualMachine();
$vm->cleanDBonItemDelete('Computer', $this->fields['id']);
}
示例4: cleanDBonPurge
function cleanDBonPurge()
{
$csv = new Computer_SoftwareVersion();
$csv->cleanDBonItemDelete('Computer', $this->fields['id']);
$csl = new Computer_SoftwareLicense();
$csl->cleanDBonItemDelete('Computer', $this->fields['id']);
$ip = new Item_Problem();
$ip->cleanDBonItemDelete('Computer', $this->fields['id']);
$ci = new Computer_Item();
$ci->cleanDBonItemDelete('Computer', $this->fields['id']);
Item_Devices::cleanItemDeviceDBOnItemDelete('Computer', $this->fields['id']);
$disk = new ComputerDisk();
$disk->cleanDBonItemDelete('Computer', $this->fields['id']);
$vm = new ComputerVirtualMachine();
$vm->cleanDBonItemDelete('Computer', $this->fields['id']);
}