PHP 클래스 Ublaboo\DataGrid\DataSource\NetteDatabaseTableDataSource

상속: extends FilterableDataSource, implements Ublaboo\DataGrid\DataSource\IDataSource
파일 보기 프로젝트 열기: ublaboo/datagrid

보호된 프로퍼티들

프로퍼티 타입 설명
$data array
$data_source Nette\Database\Table\Selection
$primary_key string

공개 메소드들

메소드 설명
__construct ( Selection $data_source, string $primary_key )
applyFilterDate ( FilterDate $filter ) : void Filter by date
applyFilterDateRange ( FilterDateRange $filter ) : void Filter by date range
applyFilterMultiSelect ( FilterMultiSelect $filter ) : void Filter by multi select value
applyFilterRange ( FilterRange $filter ) : void Filter by range
applyFilterSelect ( FilterSelect $filter ) : void Filter by select value
applyFilterText ( FilterText $filter ) : void Filter by keyword
filterOne ( array $condition ) : static Filter data - get one row
getCount ( ) : integer Get count of data
getData ( ) : array Get the data
limit ( integer $offset, integer $limit ) : static Apply limit and offset on data
processAggregation ( callable $aggregationCallback ) : void
sort ( Sorting $sorting ) : static Sort data

메소드 상세

__construct() 공개 메소드

public __construct ( Selection $data_source, string $primary_key )
$data_source Nette\Database\Table\Selection
$primary_key string

applyFilterDate() 공개 메소드

Filter by date
public applyFilterDate ( FilterDate $filter ) : void
$filter Ublaboo\DataGrid\Filter\FilterDate
리턴 void

applyFilterDateRange() 공개 메소드

Filter by date range
public applyFilterDateRange ( FilterDateRange $filter ) : void
$filter Ublaboo\DataGrid\Filter\FilterDateRange
리턴 void

applyFilterMultiSelect() 공개 메소드

Filter by multi select value
public applyFilterMultiSelect ( FilterMultiSelect $filter ) : void
$filter Ublaboo\DataGrid\Filter\FilterMultiSelect
리턴 void

applyFilterRange() 공개 메소드

Filter by range
public applyFilterRange ( FilterRange $filter ) : void
$filter Ublaboo\DataGrid\Filter\FilterRange
리턴 void

applyFilterSelect() 공개 메소드

Filter by select value
public applyFilterSelect ( FilterSelect $filter ) : void
$filter Ublaboo\DataGrid\Filter\FilterSelect
리턴 void

applyFilterText() 공개 메소드

Filter by keyword
public applyFilterText ( FilterText $filter ) : void
$filter Ublaboo\DataGrid\Filter\FilterText
리턴 void

filterOne() 공개 메소드

Filter data - get one row
public filterOne ( array $condition ) : static
$condition array
리턴 static

getCount() 공개 메소드

Get count of data
public getCount ( ) : integer
리턴 integer

getData() 공개 메소드

Get the data
public getData ( ) : array
리턴 array

limit() 공개 메소드

Apply limit and offset on data
public limit ( integer $offset, integer $limit ) : static
$offset integer
$limit integer
리턴 static

processAggregation() 공개 메소드

public processAggregation ( callable $aggregationCallback ) : void
$aggregationCallback callable
리턴 void

sort() 공개 메소드

Sort data
public sort ( Sorting $sorting ) : static
$sorting Ublaboo\DataGrid\Utils\Sorting
리턴 static

프로퍼티 상세

$data 보호되어 있는 프로퍼티

protected array $data
리턴 array

$data_source 보호되어 있는 프로퍼티

protected Selection,Nette\Database\Table $data_source
리턴 Nette\Database\Table\Selection

$primary_key 보호되어 있는 프로퍼티

protected string $primary_key
리턴 string