summaryrefslogtreecommitdiff
path: root/app/Model/TaskFileModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/TaskFileModel.php')
-rw-r--r--app/Model/TaskFileModel.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/TaskFileModel.php b/app/Model/TaskFileModel.php
index 0163da28..9d446004 100644
--- a/app/Model/TaskFileModel.php
+++ b/app/Model/TaskFileModel.php
@@ -23,6 +23,7 @@ class TaskFileModel extends FileModel
* @var string
*/
const EVENT_CREATE = 'task.file.create';
+ const EVENT_DESTROY = 'task.file.destroy';
/**
* Get the table
@@ -100,4 +101,15 @@ class TaskFileModel extends FileModel
{
$this->queueManager->push($this->taskFileEventJob->withParams($file_id, self::EVENT_CREATE));
}
+
+ /**
+ * Fire file destruction event
+ *
+ * @access protected
+ * @param integer $file_id
+ */
+ protected function fireDestructionEvent($file_id)
+ {
+ $this->queueManager->push($this->taskFileEventJob->withParams($file_id, self::EVENT_DESTROY));
+ }
}