예제 #1
0
 /**
  * Write a Row to the File. The Fieldset of the Row must match the
  *
  * @param Row $row
  *
  * @throws Exception
  */
 public function writeRow(Row $row)
 {
     if (!$row->isValid()) {
         throw new Exception('Cant add invalid row');
     }
     if ($row->getFieldset() != $this->fieldset) {
         throw new Exception('Cant add row with different fieldset');
     }
     $this->data .= $row->render() . "\r\n";
 }