summaryrefslogtreecommitdiff
path: root/actions/task_assign_specific_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/task_assign_specific_user.php')
-rw-r--r--actions/task_assign_specific_user.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/actions/task_assign_specific_user.php b/actions/task_assign_specific_user.php
index 8cafde6d..edde560e 100644
--- a/actions/task_assign_specific_user.php
+++ b/actions/task_assign_specific_user.php
@@ -4,14 +4,33 @@ namespace Action;
require_once __DIR__.'/base.php';
+/**
+ * Assign a task to a specific user
+ *
+ * @package action
+ * @author Frederic Guillot
+ */
class TaskAssignSpecificUser extends Base
{
+ /**
+ * Constructor
+ *
+ * @access public
+ * @param integer $project_id Project id
+ * @param Task $task Task model instance
+ */
public function __construct($project_id, \Model\Task $task)
{
parent::__construct($project_id);
$this->task = $task;
}
+ /**
+ * Get the required parameter for the action (defined by the user)
+ *
+ * @access public
+ * @return array
+ */
public function getActionRequiredParameters()
{
return array(
@@ -20,6 +39,12 @@ class TaskAssignSpecificUser extends Base
);
}
+ /**
+ * Get the required parameter for the event
+ *
+ * @access public
+ * @return array
+ */
public function getEventRequiredParameters()
{
return array(
@@ -28,6 +53,13 @@ class TaskAssignSpecificUser extends Base
);
}
+ /**
+ * Execute the action
+ *
+ * @access public
+ * @param array $data Event data dictionary
+ * @return bool True if the action was executed or false when not executed
+ */
public function doAction(array $data)
{
if ($data['column_id'] == $this->getParam('column_id')) {