/** * Delete this instance */ function delete() { if ($this->isentitytype) { Vtiger_Access::deleteSharing($this); Vtiger_Access::deleteTools($this); Vtiger_Filter::deleteForModule($this); Vtiger_Block::deleteForModule($this); if (method_exists($this, 'deinitWebservice')) { $this->deinitWebservice(); } } $this->__delete(); Vtiger_Profile::deleteForModule($this); Vtiger_Link::deleteAll($this->id); Vtiger_Menu::detachModule($this); self::syncfile(); }
/** * Delete this instance */ function delete() { if ($this->isentitytype) { Vtiger_Access::deleteSharing($this); Vtiger_Access::deleteTools($this); Vtiger_Filter::deleteForModule($this); Vtiger_Block::deleteForModule($this); } $this->__delete(); Vtiger_Profile::deleteForModule($this); Vtiger_Link::deleteAll($this->id); Vtiger_Menu::detachModule($this); self::syncfile(); }