Skip to content
Browse files

Merge branch 'MDL-27034_xhprof_table_sql_master' of git://github.com/…

…stronk7/moodle
  • Loading branch information...
2 parents cf0050f + 54fb7e8 commit 08c2633f12ec363dcd9c6a910ec50cf82c218db0 Sam Hemelryk committed Apr 11, 2011
Showing with 3 additions and 11 deletions.
  1. +3 −11 lib/xhprof/xhprof_moodle.php
View
14 lib/xhprof/xhprof_moodle.php
@@ -506,18 +506,10 @@ class xhprof_table_sql extends table_sql {
protected $listurlmode = false;
/**
- * Overwrite this method to be able to inject extra class to
- * some (reference rows). Original API doesn't seem to allow that
+ * Get row classes to be applied based on row contents
*/
- function build_table(){
- if ($this->rawdata){
- foreach($this->rawdata as $row){
- $formattedrow = $this->format_row($row);
- // reference row, add 'referencerun' class
- $classname = $row->runreference ? 'referencerun' : '';
- $this->add_data_keyed($formattedrow, $classname);
- }
- }
+ function get_row_class($row) {
+ return $row->runreference ? 'referencerun' : ''; // apply class to reference runs
}
/**

0 comments on commit 08c2633

Please sign in to comment.
Something went wrong with that request. Please try again.