Beispiel #1
0
 /**
  * Create a cell
  *
  * @param Column $column
  * @param object $row
  *
  * @return Cell
  */
 public function create(Column $column, $row)
 {
     $cellType = $column->getCellType();
     $cell = new Cell();
     $cell->setValue($cellType->getData($row, $column, $column->getCellAttributes()));
     $cell->setExportValue($cellType->getExportData($row, $column, $column->getCellAttributes()));
     $cell->setAttributes($column->getCellAttributes());
     $cell->setType($cellType->getName());
     $cell->setView($cellType->getView());
     $cell->setProperty($column->getProperty());
     return $cell;
 }