original_string: 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);
              }
          }
      }
code: 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);
              }
          }
      }
code_tokens: 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 ) ; } } }
docstring: 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( ... ),
  )
docstring_tokens: Adds multiple rows from an array .