PHP 클래스 Tdt\Core\DataControllers\CSVController

저자: 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 )
parseColumns ( $config ) Parse the columns from a CSV file and return them Optionally aliases can be given to columns as well as a primary key
readData ( $source_definition, $rest_parameters = [] )

비공개 메소드들

메소드 설명
createValues ( $columns, $data ) This function returns an array with key=column-name and value=data.
processURI ( string $uri ) : array Parse the URI and look for the resource name and the format

메소드 상세

__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

parseColumns() 공개 정적인 메소드

Parse the columns from a CSV file and return them Optionally aliases can be given to columns as well as a primary key
public static parseColumns ( $config )

readData() 공개 메소드

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