protected function createRowFromArray(array $row) { foreach ($row as $column => $value) { if (!array_key_exists($column, $this->columns)) { throw new \Psc\Exception('Request eines unbekannten Spalten-Typs: "' . $column . '" ' . print_r(A::keys($row), true) . '. Wurde dieser mit addColumn() hinzugefügt?'); } $cell = $this->sheet->setCellValue($this->columns[$column][0] . $this->row->getRowIndex(), $value, true); } }
/** * Gibt alle assigned Variables des Templates aus * * kann im template mit $this->debug() aufgerufen werden */ public function debug() { print_r(A::keys((array) $this->vars)); }