public function setRows(array $rows)
    {
        if (isset($rows['_head'])) {
            $this->setHeading($rows['_head']);
            unset($rows['_head']);
        }
        
        if (!empty($rows)) {
            foreach($rows as $row) {
                $this->setRow($row);
            }
        }
        
        return $this;
    }
public function setRows(array $rows)
    {
        if (isset($rows['_head'])) {
            $this->setHeading($rows['_head']);
            unset($rows['_head']);
        }
        
        if (!empty($rows)) {
            foreach($rows as $row) {
                $this->setRow($row);
            }
        }
        
        return $this;
    }
public function setRows ( array $ rows ) { if ( isset ( $ rows [ '_head' ] ) ) { $ this -> setHeading ( $ rows [ '_head' ] ) ; unset ( $ rows [ '_head' ] ) ; } if ( ! empty ( $ rows ) ) { foreach ( $ rows as $ row ) { $ this -> setRow ( $ row ) ; } } return $ this ; }
Set several rows at once.  You can also set the heading
by providing an array item with the key of "_head".

@param array $rows
@return \m\Html\Table
Set several rows at once . You can also set the heading by providing an array item with the key of _head .