PHP 클래스 Tdt\Core\DataControllers\XLSController

저자: Jan Vansteenlandt ([email protected])
저자: Pieter Colpaert ([email protected])
저자: Michiel Vancoillie ([email protected])
상속: extends Tdt\Core\DataControllers\ADataController
파일 보기 프로젝트 열기: tdt/core 1 사용 예제들

공개 메소드들

메소드 설명
__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 = [] )