PHP Class Ublaboo\DataGrid\DataSource\DibiFluentMssqlDataSource

Inheritance: extends Ublaboo\DataGrid\DataSource\DibiFluentDataSource
显示文件 Open project: ublaboo/datagrid

Protected Properties

Property Type Description
$data array
$data_source DibiFluent
$primary_key string

Public Methods

Method Description
__construct ( DibiFluent $data_source, string $primary_key )
applyFilterDate ( FilterDate $filter ) : void Filter by date
applyFilterDateRange ( FilterDateRange $filter ) : void Filter by date range
applyFilterText ( FilterText $filter ) : void Filter by date
filterOne ( array $condition ) : static Get the data
getCount ( ) : integer Get count of data
limit ( integer $offset, integer $limit ) : static Apply limit and offset on data

Method Details

__construct() public method

public __construct ( DibiFluent $data_source, string $primary_key )
$data_source DibiFluent
$primary_key string

applyFilterDate() public method

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

applyFilterDateRange() public method

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

applyFilterText() public method

Filter by date
public applyFilterText ( FilterText $filter ) : void
$filter Ublaboo\DataGrid\Filter\FilterText
return void

filterOne() public method

Get the data
public filterOne ( array $condition ) : static
$condition array
return static

getCount() public method

Get count of data
public getCount ( ) : integer
return integer

limit() public method

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

Property Details

$data protected_oe property

protected array $data
return array

$data_source protected_oe property

protected DibiFluent $data_source
return DibiFluent

$primary_key protected_oe property

protected string $primary_key
return string