public function beforeDelete() { $notification = new \humhub\modules\tasks\notifications\Assigned(); $notification->source = $this->task; $notification->send($this->user); return parent::beforeDelete(); }
/** * Before deleting a SIContent try to delete all corresponding SIContentAddons. */ public function beforeDelete() { // delete also all wall entries foreach ($this->getWallEntries() as $entry) { $entry->delete(); } return parent::beforeDelete(); }
public function beforeDelete() { $path = $this->getPath(); // Make really sure, that we dont delete something else :-) if ($this->guid != "" && $this->folder_uploads != "" && is_dir($path)) { $files = glob($path . DIRECTORY_SEPARATOR . "*"); foreach ($files as $file) { if (is_file($file)) { unlink($file); } } rmdir($path); } return parent::beforeDelete(); }
public function beforeDelete() { return parent::beforeDelete(); }