Esempio n. 1
0
 public function test_remember_data()
 {
     $this->table->setContent('cell content');
     $this->table->rememberData($this->table->getContent());
     $data = $this->table->getData();
     $this->assertEquals('cell content', $data[$this->table->getRow()][$this->table->getColumn()]);
 }
Esempio n. 2
0
 /**
  * @param ReferenceTable $table
  */
 public function flush(ReferenceTable &$table)
 {
     if (is_string($table->getContent())) {
         if (trim($table->getContent()) > '') {
             $this->sheet->cell($table->getColumn() . $table->getRow(), $table->getContent());
             $table->rememberData($table->getContent());
         }
     } else {
         $table->rememberData('RICH TEXT: ' . $table->getContent());
     }
     $table->setContent('');
 }