columns[] = array('class' => $class, 'style' => $style); } /** * Add row to table. * * @param array data to go in table cells * @param string CSS class * @param string CSS style */ public function add_row($data, $class = '', $style = '') { $this->rows[] = array('data' => $data, 'class' => $class, 'style' => $style); } /** * Render table. * * @return string */ public function render() { $data['rows'] = $this->rows; $data['columns'] = $this->columns; return View::factory('kohana_profiler_table', $data)->render(); } }