function addData($data, $col_id = 0, $row_id = 0) {
        foreach ($data as $row) {
            if ($row === self::CONSOLE_TABLE_HORIZONTAL_RULE) {
                $this->_data[$row_id] = self::CONSOLE_TABLE_HORIZONTAL_RULE;
                $row_id++;
                continue;
            }
            $starting_col = $col_id;
            foreach ($row as $cell) {
                $this->_data[$row_id][$starting_col++] = $cell;
            }
            $this->_updateRowsCols();
            $this->_max_cols = max($this->_max_cols, $starting_col);
            $row_id++;
        }
    }
function addData($data, $col_id = 0, $row_id = 0) {
        foreach ($data as $row) {
            if ($row === self::CONSOLE_TABLE_HORIZONTAL_RULE) {
                $this->_data[$row_id] = self::CONSOLE_TABLE_HORIZONTAL_RULE;
                $row_id++;
                continue;
            }
            $starting_col = $col_id;
            foreach ($row as $cell) {
                $this->_data[$row_id][$starting_col++] = $cell;
            }
            $this->_updateRowsCols();
            $this->_max_cols = max($this->_max_cols, $starting_col);
            $row_id++;
        }
    }
function addData ( $ data , $ col_id = 0 , $ row_id = 0 ) { foreach ( $ data as $ row ) { if ( $ row === self :: CONSOLE_TABLE_HORIZONTAL_RULE ) { $ this -> _data [ $ row_id ] = self :: CONSOLE_TABLE_HORIZONTAL_RULE ; $ row_id ++ ; continue ; } $ starting_col = $ col_id ; foreach ( $ row as $ cell ) { $ this -> _data [ $ row_id ] [ $ starting_col ++ ] = $ cell ; } $ this -> _updateRowsCols ( ) ; $ this -> _max_cols = max ( $ this -> _max_cols , $ starting_col ) ; $ row_id ++ ; } }
Adds data to the table.

@param array $data A two dimensional array with the table data.
@param integer $col_id Starting column number.
@param integer $row_id Starting row number.

@return void
Adds data to the table .