cleanDBonItemDelete() public method

Clear all alerts for an item
public cleanDBonItemDelete ( $itemtype, $ID ) : boolean
$itemtype ID of the type to clear
$ID ID of the item to clear
return boolean
Example #1
0
 /**
  * @since version 0.84
  **/
 function cleanDBonPurge()
 {
     $csl = new Computer_SoftwareLicense();
     $csl->cleanDBonItemDelete('SoftwareLicense', $this->fields['id']);
     $class = new Alert();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
 }
 function cleanDBonPurge()
 {
     $class = new Consumable();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new Alert();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
 }
 function cleanDBonPurge()
 {
     $class = new Cartridge();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new CartridgeItem_PrinterModel();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new Alert();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
 }
Example #4
0
 function cleanDBonPurge()
 {
     $class = new Contract_Supplier();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new ContractCost();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new Contract_Item();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new Alert();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
 }