コード例 #1
0
 public function __construct(&$result_object, &$result_file = null, $extra_attributes = null)
 {
     parent::__construct($result_object, $result_file, $extra_attributes);
     $this->i['iveland_view'] = true;
     $this->i['graph_orientation'] = 'HORIZONTAL';
     $this->i['identifier_height'] = -1;
 }
コード例 #2
0
 public function __construct(&$result_object, &$result_file = null, $extra_attributes = null)
 {
     $max_count = 0;
     if (!$extra_attributes['force_tracking_line_graph']) {
         foreach ($result_object->test_result_buffer->buffer_items as &$buffer_item) {
             $values = pts_strings::comma_explode($buffer_item->get_result_value());
             $buffer_item->reset_result_value($values);
             $buffer_item->reset_raw_value(pts_strings::comma_explode($buffer_item->get_result_raw()));
             $max_count = max($max_count, count($values));
         }
     }
     parent::__construct($result_object, $result_file, $extra_attributes);
     $this->i['show_graph_key'] = true;
     $this->i['show_background_lines'] = true;
     $this->i['iveland_view'] = true;
     $this->i['min_identifier_size'] = 6.5;
     $this->i['plot_overview_text'] = isset($extra_attributes['no_overview_text']) == false;
     $this->i['display_select_identifiers'] = false;
     $this->i['hide_graph_identifiers'] = !isset($extra_attributes['force_tracking_line_graph']) || !$extra_attributes['force_tracking_line_graph'];
     if ($this->is_multi_way_comparison && $extra_attributes['force_tracking_line_graph']) {
         // need to do compacting here
         $this->test_result->test_result_buffer = new pts_test_result_buffer();
         foreach ($this->results as $system => $results) {
             $result_r = array();
             $raw_r = array();
             //$json_r = array();
             foreach ($this->graph_identifiers as $d) {
                 $result_r[$d] = null;
                 $raw_r[$d] = null;
                 //$json_r[$d] = null;
             }
             foreach ($results as &$buffer_item) {
                 $result_r[$buffer_item->get_result_identifier()] = $buffer_item->get_result_value();
                 $raw_r[$buffer_item->get_result_identifier()] = $buffer_item->get_result_raw();
                 $json_r[$buffer_item->get_result_identifier()] = $buffer_item->get_result_json();
             }
             // add array_values($json_r)
             $this->test_result->test_result_buffer->add_test_result($system, array_values($result_r), array_values($raw_r));
         }
         $max_count = count($this->graph_identifiers) + 2;
     }
     $this->max_count = $max_count;
 }