PHPRtfLite_Table::addRows PHP Method

addRows() public method

adds rows
public addRows ( integer $rowCnt, float $height = null )
$rowCnt integer
$height float row height. When null, the height is sufficient for all the text in the line; when positive, the height is guaranteed to be at least the specified height; when negative, the absolute value of the height is used, regardless of the height of the text in the line.
    public function addRows($rowCnt, $height = null)
    {
        for ($i = 0; $i < $rowCnt; $i++) {
            $this->addRow($height);
        }
    }

Usage Example

Example #1
0
 /**
  * tests checkIfCellExists
  */
 public function testCheckIfCellExistsStartIndex()
 {
     $this->_table->addRows(3);
     $this->_table->addColumnsList(array(5, 5, 5, 4));
     $this->assertTrue($this->_table->checkIfCellExists(1, 1));
     return $this->_table;
 }