summaryrefslogtreecommitdiffstats
path: root/App/ajax/gettask.php
blob: ff55e8608cdfc2fa92ea8ad4beae196ccf9f629b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Created by PhpStorm.
 * User: brolaugh
 * Date: 3/1/16
 * Time: 9:03 PM
 */


chdir("../..");
include_once 'Helper.php';

//$statuses = $_POST['statuses'];
if(!isset($_POST['task'])){
  exit();
}
  $s = new Select();
  $task = $s->getAllTaskWithStatus($_POST['task']);
  $tl = $s->getAllStatusLevels();
  $taskWriter = new App\Task($task);
  $taskWriter->setChangeableStatuses($status_level);
  $taskWriter->printTask();