summaryrefslogtreecommitdiff
path: root/app/Action
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/Action
parentaca4207a94200ce4033de57baabc69afe5e3804e (diff)
Add more events and notifications for tasks
Diffstat (limited to 'app/Action')
-rw-r--r--app/Action/Base.php11
-rw-r--r--app/Action/TaskAssignCategoryColor.php2
-rw-r--r--app/Action/TaskAssignColorCategory.php2
-rw-r--r--app/Action/TaskAssignColorUser.php2
-rw-r--r--app/Action/TaskAssignCurrentUser.php2
-rw-r--r--app/Action/TaskAssignSpecificUser.php2
6 files changed, 16 insertions, 5 deletions
diff --git a/app/Action/Base.php b/app/Action/Base.php
index 14b0a3c0..5b7b3502 100644
--- a/app/Action/Base.php
+++ b/app/Action/Base.php
@@ -139,4 +139,15 @@ abstract class Base implements Listener
return false;
}
+
+ /**
+ * Return class information
+ *
+ * @access public
+ * @return string
+ */
+ public function __toString()
+ {
+ return get_called_class();
+ }
}
diff --git a/app/Action/TaskAssignCategoryColor.php b/app/Action/TaskAssignCategoryColor.php
index 19d7fa9c..3e5b9304 100644
--- a/app/Action/TaskAssignCategoryColor.php
+++ b/app/Action/TaskAssignCategoryColor.php
@@ -75,7 +75,7 @@ class TaskAssignCategoryColor extends Base
$this->task->update(array(
'id' => $data['task_id'],
'category_id' => $this->getParam('category_id'),
- ));
+ ), false);
return true;
}
diff --git a/app/Action/TaskAssignColorCategory.php b/app/Action/TaskAssignColorCategory.php
index 4304d084..e7aad01f 100644
--- a/app/Action/TaskAssignColorCategory.php
+++ b/app/Action/TaskAssignColorCategory.php
@@ -75,7 +75,7 @@ class TaskAssignColorCategory extends Base
$this->task->update(array(
'id' => $data['task_id'],
'color_id' => $this->getParam('color_id'),
- ));
+ ), false);
return true;
}
diff --git a/app/Action/TaskAssignColorUser.php b/app/Action/TaskAssignColorUser.php
index 9ff140b3..dad46bf9 100644
--- a/app/Action/TaskAssignColorUser.php
+++ b/app/Action/TaskAssignColorUser.php
@@ -75,7 +75,7 @@ class TaskAssignColorUser extends Base
$this->task->update(array(
'id' => $data['task_id'],
'color_id' => $this->getParam('color_id'),
- ));
+ ), false);
return true;
}
diff --git a/app/Action/TaskAssignCurrentUser.php b/app/Action/TaskAssignCurrentUser.php
index 1c038966..8ae87ff9 100644
--- a/app/Action/TaskAssignCurrentUser.php
+++ b/app/Action/TaskAssignCurrentUser.php
@@ -85,7 +85,7 @@ class TaskAssignCurrentUser extends Base
$this->task->update(array(
'id' => $data['task_id'],
'owner_id' => $this->acl->getUserId(),
- ));
+ ), false);
return true;
}
diff --git a/app/Action/TaskAssignSpecificUser.php b/app/Action/TaskAssignSpecificUser.php
index 8c379bcc..a903327b 100644
--- a/app/Action/TaskAssignSpecificUser.php
+++ b/app/Action/TaskAssignSpecificUser.php
@@ -75,7 +75,7 @@ class TaskAssignSpecificUser extends Base
$this->task->update(array(
'id' => $data['task_id'],
'owner_id' => $this->getParam('user_id'),
- ));
+ ), false);
return true;
}