summaryrefslogtreecommitdiff
path: root/app/Event
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-16 16:35:43 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-16 16:35:43 +0200
commita76939066b01b9dd39ff44a8d3aa3165dc7b3eaf (patch)
tree0687c85ec5714f82ad56000e17f69b373736ffd3 /app/Event
parentaca4207a94200ce4033de57baabc69afe5e3804e (diff)
Add more events and notifications for tasks
Diffstat (limited to 'app/Event')
-rw-r--r--app/Event/BaseNotificationListener.php11
-rw-r--r--app/Event/CommentHistoryListener.php11
-rw-r--r--app/Event/ProjectModificationDate.php11
-rw-r--r--app/Event/SubtaskHistoryListener.php11
-rw-r--r--app/Event/TaskHistoryListener.php11
-rw-r--r--app/Event/WebhookListener.php11
6 files changed, 66 insertions, 0 deletions
diff --git a/app/Event/BaseNotificationListener.php b/app/Event/BaseNotificationListener.php
index 6c1728cb..fdabaf57 100644
--- a/app/Event/BaseNotificationListener.php
+++ b/app/Event/BaseNotificationListener.php
@@ -52,6 +52,17 @@ abstract class BaseNotificationListener implements Listener
}
/**
+ * Return class information
+ *
+ * @access public
+ * @return string
+ */
+ public function __toString()
+ {
+ return get_called_class();
+ }
+
+ /**
* Execute the action
*
* @access public
diff --git a/app/Event/CommentHistoryListener.php b/app/Event/CommentHistoryListener.php
index a89ecbae..e5e92b01 100644
--- a/app/Event/CommentHistoryListener.php
+++ b/app/Event/CommentHistoryListener.php
@@ -33,6 +33,17 @@ class CommentHistoryListener implements Listener
}
/**
+ * Return class information
+ *
+ * @access public
+ * @return string
+ */
+ public function __toString()
+ {
+ return get_called_class();
+ }
+
+ /**
* Execute the action
*
* @access public
diff --git a/app/Event/ProjectModificationDate.php b/app/Event/ProjectModificationDate.php
index 8fbaee73..d0d1e846 100644
--- a/app/Event/ProjectModificationDate.php
+++ b/app/Event/ProjectModificationDate.php
@@ -35,6 +35,17 @@ class ProjectModificationDate implements Listener
}
/**
+ * Return class information
+ *
+ * @access public
+ * @return string
+ */
+ public function __toString()
+ {
+ return get_called_class();
+ }
+
+ /**
* Execute the action
*
* @access public
diff --git a/app/Event/SubtaskHistoryListener.php b/app/Event/SubtaskHistoryListener.php
index e859828c..8cc7a7fd 100644
--- a/app/Event/SubtaskHistoryListener.php
+++ b/app/Event/SubtaskHistoryListener.php
@@ -33,6 +33,17 @@ class SubtaskHistoryListener implements Listener
}
/**
+ * Return class information
+ *
+ * @access public
+ * @return string
+ */
+ public function __toString()
+ {
+ return get_called_class();
+ }
+
+ /**
* Execute the action
*
* @access public
diff --git a/app/Event/TaskHistoryListener.php b/app/Event/TaskHistoryListener.php
index c8a880e8..d963fa71 100644
--- a/app/Event/TaskHistoryListener.php
+++ b/app/Event/TaskHistoryListener.php
@@ -33,6 +33,17 @@ class TaskHistoryListener implements Listener
}
/**
+ * Return class information
+ *
+ * @access public
+ * @return string
+ */
+ public function __toString()
+ {
+ return get_called_class();
+ }
+
+ /**
* Execute the action
*
* @access public
diff --git a/app/Event/WebhookListener.php b/app/Event/WebhookListener.php
index 4668b66e..c2f6d56a 100644
--- a/app/Event/WebhookListener.php
+++ b/app/Event/WebhookListener.php
@@ -43,6 +43,17 @@ class WebhookListener implements Listener
}
/**
+ * Return class information
+ *
+ * @access public
+ * @return string
+ */
+ public function __toString()
+ {
+ return get_called_class();
+ }
+
+ /**
* Execute the action
*
* @access public