com\setasign\Konquadrat\Import\File

PhpSpreadsheetReader

File: /Konquadrat/src/Import/File/PhpSpreadsheetReader.php

Class hierarchy

Summary

Properties

$file

$headings

protected ?string[] AbstractFileReader::$headings

$options

protected AbstractFileReader::$options = array()

$row

$startRow

$worksheet


Static Methods


Methods

__construct()

Parameters
$file: \com\setasign\SetaFramework\FileSystem\SavedFile
 
$options: array
 

createReader()

protected PhpSpreadsheetReader::createReader (
void
): \PhpOffice\PhpSpreadsheet\Reader\IReader
Exceptions

Throws \PhpOffice\PhpSpreadsheet\Reader\Exception

getIterator()

Exceptions

Throws \com\setasign\Konquadrat\Exception

Throws \PhpOffice\PhpSpreadsheet\Exception

initReader()

protected PhpSpreadsheetReader::initReader (
void
): void
Exceptions

Throws \com\setasign\Konquadrat\Exception

Throws \PhpOffice\PhpSpreadsheet\Reader\Exception

Throws \PhpOffice\PhpSpreadsheet\Exception

readHeadCells()

protected PhpSpreadsheetReader::readHeadCells (
\Traversable $cells
): array
Parameters
$cells: \Traversable
 

readHeadings()

public AbstractFileReader::readHeadings (
void
): array

readOnlyHeadings()

public PhpSpreadsheetReader::readOnlyHeadings (
void
): array

This method reads the file but only the first few rows until a headline is found. This method should be much faster than readHeadings but after reading the headings you cannot read any further.

So if you need more than just the headings you shouldn't use this method!

Exceptions

Throws \com\setasign\Konquadrat\Exception