t('Column'), 'subject' => t('Email subject'), ); } public function getEventRequiredParameters() { return array( 'task_id', 'task' => array( 'project_id', 'column_id', 'owner_id', 'owner_ms', ), ); } public function doAction(array $data) { $multimembers = $this->multiselectMemberModel->getMembers($data['task']['owner_ms']); if (! empty($multimembers)) { foreach ($multimembers as $members) { $user = $this->userModel->getById($members['id']); if (! empty($user['email'])) { $this->emailClient->send( $user['email'], $user['name'] ?: $user['username'], $this->getParam('subject'), $this->template->render('notification/task_create', array( 'task' => $data['task'], )) ); } } return true; } return false; } public function hasRequiredCondition(array $data) { return $data['task']['column_id'] == $this->getParam('column_id'); } }