function updateTotals() { parent::updateTotals(); foreach ($this->current_row as $key => $val) { if (!empty($this->totals_title_field) and $key == $this->totals_title_field) { $this->totals[$key] = $this->totals_title; } } }
/** * Add current rendered row values to totals * * Called before each formatRow() call. * * @return void */ function updateTotals() { parent::updateTotals(); }