Alert::cleanDBonItemDelete PHP Метод

cleanDBonItemDelete() публичный Метод

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
Результат boolean
    function cleanDBonItemDelete($itemtype, $ID)
    {
        return $this->deleteByCriteria(['itemtype' => $itemtype, 'items_id' => $ID], 1);
    }

Usage 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']);
 }
All Usage Examples Of Alert::cleanDBonItemDelete