public function updateTotals()
    {
        if (is_array($this->totals)) {
            foreach ($this->totals as $key => $val) {
                if (is_object($this->current_row[$key])) {
                    continue;
                }
                $this->totals[$key] = $val + $this->current_row[$key];
            }
        }
    }
public function updateTotals()
    {
        if (is_array($this->totals)) {
            foreach ($this->totals as $key => $val) {
                if (is_object($this->current_row[$key])) {
                    continue;
                }
                $this->totals[$key] = $val + $this->current_row[$key];
            }
        }
    }
public function updateTotals ( ) { if ( is_array ( $ this -> totals ) ) { foreach ( $ this -> totals as $ key => $ val ) { if ( is_object ( $ this -> current_row [ $ key ] ) ) { continue ; } $ this -> totals [ $ key ] = $ val + $ this -> current_row [ $ key ] ; } } }
Add current rendered row values to totals.

Called before each formatRow() call.
Add current rendered row values to totals .