PHP Interface Ublaboo\DataGrid\DataSource\IDataSource

Mostrar archivo Open project: ublaboo/datagrid Interface Usage Examples

Public Methods

Method Description
filter ( array $filters ) : static Filter data
filterOne ( array $filter ) : 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
sort ( Sorting $sorting ) : static Sort data

Method Details

filter() public method

Filter data
public filter ( array $filters ) : static
$filters array
return static

filterOne() public method

Filter data - get one row
public filterOne ( array $filter ) : static
$filter array
return static

getCount() public method

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

getData() public method

Get the data
public getData ( ) : array
return array

limit() public method

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

sort() public method

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