adds list of rows to a table.
public addRowList ( array $heights ) | ||
$heights | array | array of heights for each row to add. When height is 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. |
/** * tests addRowList * @depends testAddRows */ public function testAddRowList(PHPRtfLite_Table $table) { $rowHeights = array(2, 5); $table->addRowList($rowHeights); $this->assertEquals(6, $table->getRowsCount()); return $table; }