Rename subtask controller
This commit is contained in:
@@ -3,14 +3,15 @@
|
||||
namespace Kanboard\Controller;
|
||||
|
||||
use Kanboard\Core\Controller\AccessForbiddenException;
|
||||
use Kanboard\Core\Controller\PageNotFoundException;
|
||||
|
||||
/**
|
||||
* Subtask controller
|
||||
*
|
||||
* @package controller
|
||||
* @package Kanboard\Controller
|
||||
* @author Frederic Guillot
|
||||
*/
|
||||
class Subtask extends BaseController
|
||||
class SubtaskController extends BaseController
|
||||
{
|
||||
/**
|
||||
* Creation form
|
||||
@@ -19,7 +20,7 @@ class Subtask extends BaseController
|
||||
* @param array $values
|
||||
* @param array $errors
|
||||
* @throws AccessForbiddenException
|
||||
* @throws \Kanboard\Core\Controller\PageNotFoundException
|
||||
* @throws PageNotFoundException
|
||||
*/
|
||||
public function create(array $values = array(), array $errors = array())
|
||||
{
|
||||
@@ -76,7 +77,7 @@ class Subtask extends BaseController
|
||||
* @param array $values
|
||||
* @param array $errors
|
||||
* @throws AccessForbiddenException
|
||||
* @throws \Kanboard\Core\Controller\PageNotFoundException
|
||||
* @throws PageNotFoundException
|
||||
*/
|
||||
public function edit(array $values = array(), array $errors = array())
|
||||
{
|
||||
@@ -166,7 +167,7 @@ class Subtask extends BaseController
|
||||
$task_id = $this->request->getIntegerParam('task_id');
|
||||
$values = $this->request->getJson();
|
||||
|
||||
if (! empty($values) && $this->helper->user->hasProjectAccess('Subtask', 'movePosition', $project_id)) {
|
||||
if (! empty($values) && $this->helper->user->hasProjectAccess('SubtaskController', 'movePosition', $project_id)) {
|
||||
$result = $this->subtask->changePosition($task_id, $values['subtask_id'], $values['position']);
|
||||
$this->response->json(array('result' => $result));
|
||||
} else {
|
||||
@@ -7,22 +7,22 @@ use Kanboard\Model\Subtask as SubtaskModel;
|
||||
/**
|
||||
* Subtask Restriction
|
||||
*
|
||||
* @package controller
|
||||
* @package Kanboard\Controller
|
||||
* @author Frederic Guillot
|
||||
*/
|
||||
class SubtaskRestriction extends BaseController
|
||||
class SubtaskRestrictionController extends BaseController
|
||||
{
|
||||
/**
|
||||
* Show popup
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function popover()
|
||||
public function show()
|
||||
{
|
||||
$task = $this->getTask();
|
||||
$subtask = $this->getSubtask();
|
||||
|
||||
$this->response->html($this->template->render('subtask_restriction/popover', array(
|
||||
$this->response->html($this->template->render('subtask_restriction/show', array(
|
||||
'status_list' => array(
|
||||
SubtaskModel::STATUS_TODO => t('Todo'),
|
||||
SubtaskModel::STATUS_DONE => t('Done'),
|
||||
@@ -38,7 +38,7 @@ class SubtaskRestriction extends BaseController
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function update()
|
||||
public function save()
|
||||
{
|
||||
$task = $this->getTask();
|
||||
$subtask = $this->getSubtask();
|
||||
@@ -5,10 +5,10 @@ namespace Kanboard\Controller;
|
||||
/**
|
||||
* Subtask Status
|
||||
*
|
||||
* @package controller
|
||||
* @package Kanboard\Controller
|
||||
* @author Frederic Guillot
|
||||
*/
|
||||
class SubtaskStatus extends BaseController
|
||||
class SubtaskStatusController extends BaseController
|
||||
{
|
||||
/**
|
||||
* Change status to the next status: Toto -> In Progress -> Done
|
||||
Reference in New Issue
Block a user