getRows() public method

gets table rows
public getRows ( ) : PHPRtfLite_Table_Row[]
return PHPRtfLite_Table_Row[]
Esempio n. 1
0
 /**
  * sets default font for all cells in the row
  *
  * @param PHPRtfLite_Font $font
  */
 public function setFont(PHPRtfLite_Font $font)
 {
     $rows = $this->_table->getRows();
     foreach ($rows as $row) {
         $cell = $this->_table->getCell($row->getRowIndex(), $this->_columnIndex);
         $cell->setFont($font);
     }
 }