addRow() 공개 메소드

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.
리턴 PHPRtfLite_Table_Row
예제 #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);
 }
예제 #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));
 }