* @version 1.0 * @since 20 Aug 2014 17:20:09 */ class Report { /* * Outputs the javascript necessary to print a Google Chart * * @access public * @param int $question_id * @return null * @author Quinn Comendant * @version 1.0 * @since 03 Nov 2013 13:02:12 */ static public function drawDonutChart($question_id) { ?>
* @version 1.0 * @since 03 Nov 2013 13:04:46 */ static public function printTextResponses($question_id, $responses) { $responses = array_map(function($r) { return trim($r['response_parsed']); }, $responses); $counted_responses = array_count_values($responses); asort($counted_responses); $counted_responses = array_reverse($counted_responses); foreach ($counted_responses as $r => $c) { ?>

1) { ?>