PHP Класс Tdt\Core\DataControllers\XLSController

Автор: Jan Vansteenlandt ([email protected])
Автор: Pieter Colpaert ([email protected])
Автор: Michiel Vancoillie ([email protected])
Наследование: extends Tdt\Core\DataControllers\ADataController
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Tdt\Core\Repositories\Interfaces\TabularColumnsRepositoryInterface $tabular_columns, Tdt\Core\Repositories\Interfaces\GeoPropertyRepositoryInterface $geo_properties )
getFileExtension ( $file ) Retrieve the file extension from the xls file. (xls or xlsx)
loadExcel ( $file, $type, $sheet ) Create an Excel PHP Reader object from the Excel sheet.
parseColumns ( $input ) Retrieve colummn information from the request parameters.
readData ( $source_definition, $rest_parameters = [] )

Приватные методы

Метод Описание
createValues ( $columns, $data ) This function returns an array with key=column-name and value=data given a certain data row.

Описание методов

__construct() публичный Метод

public __construct ( Tdt\Core\Repositories\Interfaces\TabularColumnsRepositoryInterface $tabular_columns, Tdt\Core\Repositories\Interfaces\GeoPropertyRepositoryInterface $geo_properties )
$tabular_columns Tdt\Core\Repositories\Interfaces\TabularColumnsRepositoryInterface
$geo_properties Tdt\Core\Repositories\Interfaces\GeoPropertyRepositoryInterface

getFileExtension() публичный статический Метод

Retrieve the file extension from the xls file. (xls or xlsx)
public static getFileExtension ( $file )

loadExcel() публичный статический Метод

Create an Excel PHP Reader object from the Excel sheet.
public static loadExcel ( $file, $type, $sheet )

parseColumns() публичный статический Метод

Retrieve colummn information from the request parameters.
public static parseColumns ( $input )

readData() публичный Метод

public readData ( $source_definition, $rest_parameters = [] )