diff options
Diffstat (limited to 'app/Helper/Subtask.php')
-rw-r--r-- | app/Helper/Subtask.php | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/app/Helper/Subtask.php b/app/Helper/Subtask.php deleted file mode 100644 index 90bd733e..00000000 --- a/app/Helper/Subtask.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -namespace Kanboard\Helper; - -/** - * Subtask helpers - * - * @package helper - * @author Frederic Guillot - */ -class Subtask extends \Kanboard\Core\Base -{ - /** - * Get the link to toggle subtask status - * - * @access public - * @param array $subtask - * @param string $redirect - * @param integer $project_id - * @return string - */ - public function toggleStatus(array $subtask, $redirect, $project_id = 0) - { - if ($project_id > 0 && ! $this->helper->user->hasProjectAccess('subtask', 'edit', $project_id)) { - return trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']); - } - - if ($subtask['status'] == 0 && isset($this->sessionStorage->hasSubtaskInProgress) && $this->sessionStorage->hasSubtaskInProgress) { - return $this->helper->url->link( - trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']), - 'subtask', - 'subtaskRestriction', - array('task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'redirect' => $redirect), - false, - 'popover task-board-popover' - ); - } - - return $this->helper->url->link( - trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']), - 'subtask', - 'toggleStatus', - array('task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'redirect' => $redirect) - ); - } -} |