function cleanDBonItemDelete($itemtype, $ID) { return $this->deleteByCriteria(['itemtype' => $itemtype, 'items_id' => $ID], 1); }
/** * @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']); }