summaryrefslogtreecommitdiff
path: root/app/Event
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-27 21:45:37 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-28 08:40:27 -0500
commit32e4a932c801dfa6c52f6e8211a96bdb7849579d (patch)
tree895d519842c69369713eaf4d8e96b7a3a17c1f3d /app/Event
parent320c7971f606a0c9caa4a20bcfcbc2fe2f6c9c00 (diff)
Added automatic actions based on a daily event
Diffstat (limited to 'app/Event')
-rw-r--r--app/Event/GenericEvent.php2
-rw-r--r--app/Event/TaskListEvent.php11
2 files changed, 12 insertions, 1 deletions
diff --git a/app/Event/GenericEvent.php b/app/Event/GenericEvent.php
index 1129fd16..94a51479 100644
--- a/app/Event/GenericEvent.php
+++ b/app/Event/GenericEvent.php
@@ -7,7 +7,7 @@ use Symfony\Component\EventDispatcher\Event as BaseEvent;
class GenericEvent extends BaseEvent implements ArrayAccess
{
- private $container = array();
+ protected $container = array();
public function __construct(array $values = array())
{
diff --git a/app/Event/TaskListEvent.php b/app/Event/TaskListEvent.php
new file mode 100644
index 00000000..9be1a7d9
--- /dev/null
+++ b/app/Event/TaskListEvent.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace Kanboard\Event;
+
+class TaskListEvent extends GenericEvent
+{
+ public function setTasks(array &$tasks)
+ {
+ $this->container['tasks'] =& $tasks;
+ }
+}