public function addRowsFromArray($array)
    {
        foreach ($array as $id => $row) {
            if (is_array($row)) {
                $row = new Row($row);
            }

            if ($id == self::ID_SUMMARY_ROW) {
                $this->summaryRow = $row;
            } else {
                $this->addRow($row);
            }
        }
    }
public function addRowsFromArray($array)
    {
        foreach ($array as $id => $row) {
            if (is_array($row)) {
                $row = new Row($row);
            }

            if ($id == self::ID_SUMMARY_ROW) {
                $this->summaryRow = $row;
            } else {
                $this->addRow($row);
            }
        }
    }
public function addRowsFromArray ( $ array ) { foreach ( $ array as $ id => $ row ) { if ( is_array ( $ row ) ) { $ row = new Row ( $ row ) ; } if ( $ id == self :: ID_SUMMARY_ROW ) { $ this -> summaryRow = $ row ; } else { $ this -> addRow ( $ row ) ; } } }
Adds multiple rows from an array.

You can add row metadata with this method.

@param array $array Array with the following structure

array(
// row1
array(
Row::COLUMNS => array( col1_name => value1, col2_name => value2, ...),
Row::METADATA => array( metadata1_name => value1,  ...), // see Row
),
// row2
array( ... ),
)
Adds multiple rows from an array .