burndown_data.php
/**
 * Output the results of the burndown-query to standard output in csv-format.
 * 
 * @param unknown_type $sprint_id
 */
Output the results of the burndown-query to standard output in csv-format.


Output the results of the burndown - query to standard output in csv - format .
function print_burndown_query( $sprint_id)
{
	global $database;
	$query = $database->exec( get_burndown_query($sprint_id));
	$fields = $database->num_fields($query);
	for ($field = 1; $field <= $fields; ++$field)
	{
		print $database->field_name($query, $field) . ',';
	}
	print "\n";
	while ($database->fetch_row($query))
	{
		for ($field = 1; $field <= $fields; ++$field)
		{
			print $database->result( $query, $field) . ',';
		}
		print "\n";
	}
}
function print_burndown_query ( $ sprint_id ) { global $ database ; $ query = $ database -> exec ( get_burndown_query ( $ sprint_id ) ) ; $ fields = $ database -> num_fields ( $ query ) ; for ( $ field = 1 ; $ field <= $ fields ; ++ $ field ) { print $ database -> field_name ( $ query , $ field ) . ',' ; } print " \n " ; while ( $ database -> fetch_row ( $ query ) ) { for ( $ field = 1 ; $ field <= $ fields ; ++ $ field ) { print $ database -> result ( $ query , $ field ) . ',' ; } print " \n " ; } }
Output the results of the burndown-query to standard output in csv-format.
Output the results of the burndown - query to standard output in csv - format .