Exemplo n.º 1
0
 function testRegularTable()
 {
     $columns = new DynamicAxis();
     $columns->addNames(['c0', 'c1', 'c2']);
     $tsection = new TableSection($columns);
     $tsection->addRow('r0')->td('c0', '00')->td('c1', '01')->td('c2', '02');
     $tsection->addRow('r1')->td('c0', '10')->td('c1', '11')->td('c2', '12');
     # print_r($tsection->getRawMatrix($columns->takeSnapshot()));
 }
Exemplo n.º 2
0
 /**
  * Adds a row and returns the row handle.
  * This is a hybrid of addRowName() and rowHandle().
  *
  * @param $rowName
  *
  * @return \Donquixote\Cellbrush\Handle\RowHandle
  * @throws \Exception
  */
 public function addRow($rowName)
 {
     return $this->tbody->addRow($rowName);
 }