예제 #1
0
 private function processColumn(Table $table, $columnIndex, Column $column, PHPExcel_Worksheet $phpExcelSheet, &$lineOffset)
 {
     // Column header
     if ($table->displayColumnsLabel()) {
         $phpExcelSheet->setCellValueByColumnAndRow($columnIndex, $lineOffset - 1, $column->getLabel());
     }
     // Lines
     foreach ($table->getLines() as $lineIndex => $line) {
         // Cell
         $cell = $table->getCell($line, $column);
         if ($cell !== null) {
             $phpExcelSheet->setCellValueByColumnAndRow($columnIndex, $lineOffset + $lineIndex, $cell->getContent());
         }
     }
 }