public function addRow($attribs = [], $special = self::ROW_NORMAL)
    {
        $this->rows[]['_row'] = $attribs;
        $this->activeRow = count($this->rows) - 1;

        if ($special) {
            if ($special === static::ROW_HEAD) {
                $this->specialRows['header'][] = $this->activeRow;
            } elseif ($special === static::ROW_FOOT) {
                $this->specialRows['footer'][] = $this->activeRow;
            }
        }

        return $this;
    }
public function addRow($attribs = [], $special = self::ROW_NORMAL)
    {
        $this->rows[]['_row'] = $attribs;
        $this->activeRow = count($this->rows) - 1;

        if ($special) {
            if ($special === static::ROW_HEAD) {
                $this->specialRows['header'][] = $this->activeRow;
            } elseif ($special === static::ROW_FOOT) {
                $this->specialRows['footer'][] = $this->activeRow;
            }
        }

        return $this;
    }
public function addRow ( $ attribs = [ ] , $ special = self :: ROW_NORMAL ) { $ this -> rows [ ] [ '_row' ] = $ attribs ; $ this -> activeRow = count ( $ this -> rows ) - 1 ; if ( $ special ) { if ( $ special === static :: ROW_HEAD ) { $ this -> specialRows [ 'header' ] [ ] = $ this -> activeRow ; } elseif ( $ special === static :: ROW_FOOT ) { $ this -> specialRows [ 'footer' ] [ ] = $ this -> activeRow ; } } return $ this ; }
Adds a row to the table and sets the currently
active row to the new row

@param   array    $attribs Associative array of attributes for the row
@param   int|bool $special 1 for a new row in the header, 2 for a new row in the footer

@return  static This object for chaining

@since   2.1
Adds a row to the table and sets the currently active row to the new row