getValues($data); return $this->projectActivity->createEvent( $values['task']['project_id'], $values['task']['id'], $this->acl->getUserId(), $this->registry->event->getLastTriggeredEvent(), $values ); } return false; } /** * Get event activity data * * @access private * @param array $data Event data dictionary * @return array */ private function getValues(array $data) { $values = array(); $values['task'] = $this->taskFinder->getDetails($data['task_id']); switch ($this->getEventNamespace()) { case 'subtask': $values['subtask'] = $this->subTask->getById($data['id'], true); break; case 'comment': $values['comment'] = $this->comment->getById($data['id']); break; } return $values; } }