PHPRtfLite_Table::addRow PHP Méthode

addRow() public méthode

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.
Résultat PHPRtfLite_Table_Row
    public function addRow($height = null)
    {
        $row = new PHPRtfLite_Table_Row($this, $this->getRowsCount() + 1, $height);
        $this->_rows[] = $row;
        return $row;
    }

Usage Example

Exemple #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);
 }
All Usage Examples Of PHPRtfLite_Table::addRow