task_data.php
/**
 * This function returns the data for all tasks of a given sprint in a format that is
 * compatible with Datatable.js.
 * 
 * @param unknown $sprint_id
 */
This function returns the data for all tasks of a given sprint in a format that is
compatible with Datatable.js.


This function returns the data for all tasks of a given sprint in a format that is compatible with Datatable . js .
function print_task_table_data( $sprint_id)
{
    global $database;
    $headers = array();
    $tasks = array();
    $result = array();
    $database->get_result_table( get_task_table_query($sprint_id), $headers, $tasks);
    $result['aaData'] = array_map( "array_values", $tasks);
    print json_encode($result);
}
function print_task_table_data ( $ sprint_id ) { global $ database ; $ headers = array ( ) ; $ tasks = array ( ) ; $ result = array ( ) ; $ database -> get_result_table ( get_task_table_query ( $ sprint_id ) , $ headers , $ tasks ) ; $ result [ 'aaData' ] = array_map ( " array_values " , $ tasks ) ; print json_encode ( $ result ) ; }
This function returns the data for all tasks of a given sprint in a format that is
 compatible with Datatable.js.
This function returns the data for all tasks of a given sprint in a format that is compatible with Datatable . js .