Ejemplo n.º 1
0
 case 'showHelpKanban':
     $sprintController->showHelpKanban();
     break;
     //new added
 //new added
 case 'moveUsToNotAssignedUS':
     $sprintController->moveUsToNotAssignedUS($_GET["IDUSERSTORYNotAssignedUS"], $_GET["IDSPRINTNotAssignedUS"]);
     break;
 case 'moveUsToSprintUS':
     $sprintController->moveUsToSprintUS($_GET["IDUSERSTORY"], $_GET["IDSPRINT"]);
     break;
 case 'ListTask':
     $taskController->ListTask($_GET["IDSPRINT"]);
     break;
 case 'addTask':
     $taskController->addTask($_GET["IDSPRINT"]);
     break;
 case 'updateTask':
     $taskController->updateTask($_GET["IDTASK"]);
     break;
 case 'validateUpdate':
     $taskController->update($_POST);
     break;
 case 'DeleteTaskFromSprint':
     $taskController->deleteTask($_GET["IDTASK"], $_GET["IDUSER"], $_GET["IDSPRINT"], $_GET["IDPROJECT"]);
     break;
 case 'ajouterTask':
     $taskController->ajouterTask($_POST);
     break;
 case 'helptTasks':
     $taskController->showHelpTasks($_GET["IDUSER"], $_GET["IDPROJECT"]);
Ejemplo n.º 2
0
<?php

require __DIR__ . "/autoloder.php";
$obj = new TaskController();
$obj->indexAction();
//Mini routing
if (!empty($_GET['delete'])) {
    $obj->deleteTaskById($_GET['delete']);
    header('Location: ./index.php');
}
if (!empty($_GET['addTask'])) {
    $obj->addTask($_GET['addTask']);
    header('Location: ./index.php');
}
if (!empty($_GET['status'] && $_GET['id'])) {
    $obj->updateStatus($_GET['id'], $_GET['status']);
}