burndown_data.php
/**
 * Output the results of the burndown-query to standard output in json format.
 * If task_id is provided, then the burndown reported will be for this task only.
 * 
 * @param unknown_type $sprint_id
 * @param unknown_type $task_id
 */
Output the results of the burndown-query to standard output in json format.
If task_id is provided, then the burndown reported will be for this task only.


Output the results of the burndown - query to standard output in json format . If task_id is provided then the burndown reported will be for this task only .
function print_chart_data( $sprint_id, $task_id = 0)
{
	global $database;
	$database->get_result_table(get_burndown_query($sprint_id, $task_id), $headers, $burndown);
	$database->get_result_table( get_available_query($sprint_id), $headers, $availability);
	$sprint = $database->get_single_result("select * from sprint where sprint_id = $sprint_id");
	print json_encode(array( 'burndown' => $burndown, 'sprint' => $sprint, 'availability' => $availability));
}
function print_chart_data ( $ sprint_id , $ task_id = 0 ) { global $ database ; $ database -> get_result_table ( get_burndown_query ( $ sprint_id , $ task_id ) , $ headers , $ burndown ) ; $ database -> get_result_table ( get_available_query ( $ sprint_id ) , $ headers , $ availability ) ; $ sprint = $ database -> get_single_result ( " select * from sprint where sprint_id =  $ sprint_id " ) ; print json_encode ( array ( 'burndown' => $ burndown , 'sprint' => $ sprint , 'availability' => $ availability ) ) ; }
Output the results of the burndown-query to standard output in json format.
Output the results of the burndown - query to standard output in json format .