addRow() public method

adds row
public addRow ( float $height = null ) : PHPRtfLite_Table_Row
$height float row height. When 0, 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.
return PHPRtfLite_Table_Row
Ejemplo n.º 1
0
 /**
  * tests getCell
  * @expectedException PHPRtfLite_Exception
  */
 public function testGetCellWithInvalidIndex()
 {
     $this->_table->addRow(1);
     $this->_table->addColumnsList(array(2, 2));
     $this->_table->getCell(1, 3);
 }
Ejemplo n.º 2
0
 /**
  * tests getCellByIndex
  * @return void
  */
 public function testGetCellByIndex()
 {
     $this->_table->addRow(5);
     $row = $this->_table->getRow(1);
     $this->assertType('PHPRtfLite_Table_Cell', $row->getCellByIndex(5));
 }