Make user mentions great again

This commit is contained in:
Frederic Guillot
2016-12-01 22:52:58 -05:00
parent be83821ef7
commit f73d0d2ac9
22 changed files with 270 additions and 140 deletions

View File

@@ -14,6 +14,28 @@ class GenericEvent extends BaseEvent implements ArrayAccess
$this->container = $values;
}
public function getTaskId()
{
if (isset($this->container['task']['id'])) {
return $this->container['task']['id'];
}
if (isset($this->container['task_id'])) {
return $this->container['task_id'];
}
return null;
}
public function getProjectId()
{
if (isset($this->container['task']['project_id'])) {
return $this->container['task']['project_id'];
}
return null;
}
public function getAll()
{
return $this->container;