本文整理匯總了PHP中Item_Devices::cleanItemDeviceDBOnItemDelete方法的典型用法代碼示例。如果您正苦於以下問題:PHP Item_Devices::cleanItemDeviceDBOnItemDelete方法的具體用法?PHP Item_Devices::cleanItemDeviceDBOnItemDelete怎麽用?PHP Item_Devices::cleanItemDeviceDBOnItemDelete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Item_Devices
的用法示例。
在下文中一共展示了Item_Devices::cleanItemDeviceDBOnItemDelete方法的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']);
}