public function __construct(&$result_file)
 {
     $columns = array();
     $hw = array();
     $sw = array();
     foreach ($result_file->get_systems() as $system) {
         $columns[] = $system->get_identifier();
         $hw[] = $system->get_hardware();
         $sw[] = $system->get_software();
     }
     $rows = array();
     $table_data = array();
     pts_result_file_analyzer::system_components_to_table($table_data, $columns, $rows, $hw);
     pts_result_file_analyzer::system_components_to_table($table_data, $columns, $rows, $sw);
     pts_result_file_analyzer::compact_result_table_data($table_data, $columns, true);
     // TODO: see if this true value works fine but if rendering starts messing up, disable it
     if (defined('OPENBENCHMARKING_IDS')) {
         foreach ($columns as &$column) {
             $column = new pts_graph_ir_value($column);
             $column->set_attribute('href', 'http://openbenchmarking.org/system/' . OPENBENCHMARKING_IDS . '/' . $column);
         }
     }
     parent::__construct($rows, $columns, $table_data, $result_file);
     $this->i['identifier_size'] *= 0.8;
     $this->column_heading_vertical = false;
     $this->graph_title = $result_file->get_title();
     if (!defined('PHOROMATIC_EXPORT_VIEWER')) {
         pts_render::report_system_notes_to_table($result_file, $this);
     }
 }
 public function __construct(&$result_file, $intent = false)
 {
     parent::__construct();
     $this->intent = is_array($intent) ? $intent : array(array(), array());
     $this->graph_title = $result_file->get_title();
     $hw = $result_file->get_system_hardware();
     $sw = $result_file->get_system_software();
     $hw = pts_result_file_analyzer::system_component_string_to_array(array_shift($hw));
     $sw = pts_result_file_analyzer::system_component_string_to_array(array_shift($sw));
     $this->components = array_merge($hw, $sw);
     pts_render::report_system_notes_to_table($result_file, $this);
 }