Beispiel #1
0
 private function buildHeaderRow($table)
 {
     if (!empty($this->headerLabels)) {
         $headerRow = new Row($this->headerLabels, $this->hidedColumns);
         $thead = $headerRow->renderHeaderRow($this->sortingEnabled);
         $table->add($thead);
     }
 }
Beispiel #2
0
 /**
  * @param $matches
  * @return mixed
  *
  * @SuppressWarnings(PHPMD.UnusedPrivateMethod)
  */
 private function translateMatch($matches)
 {
     $cellName = $matches[1];
     /** @var Cell $cell */
     $cell = $this->row->getCellByCellName($cellName);
     if (!$cell) {
         return $matches[0];
     }
     return $cell->getCellData();
 }