PHP Class Grido\DataSources\ArraySource

Author: Josef Kříž ([email protected])
Author: Petr Bugyík
Inheritance: extends Nette\Object, implements Grido\DataSources\IDataSource
Show file Open project: o5/grido

Protected Properties

Property Type Description
$data array

Public Methods

Method Description
__construct ( array $data )
compare ( string $actual, string $condition, mixed $expected ) : boolean
filter ( array $conditions )
getCount ( ) : integer
getData ( ) : array
limit ( integer $offset, integer $limit )
sort ( array $sorting )
suggest ( mixed $column, array $conditions, integer $limit ) : array

Protected Methods

Method Description
makeWhere ( Grido\Components\Filters\Condition $condition, array $data = NULL ) : array This method needs tests!

Method Details

__construct() public method

public __construct ( array $data )
$data array

compare() public method

public compare ( string $actual, string $condition, mixed $expected ) : boolean
$actual string
$condition string
$expected mixed
return boolean

filter() public method

public filter ( array $conditions )
$conditions array

getCount() public method

public getCount ( ) : integer
return integer

getData() public method

public getData ( ) : array
return array

limit() public method

public limit ( integer $offset, integer $limit )
$offset integer
$limit integer

makeWhere() protected method

This method needs tests!
protected makeWhere ( Grido\Components\Filters\Condition $condition, array $data = NULL ) : array
$condition Grido\Components\Filters\Condition
$data array
return array

sort() public method

public sort ( array $sorting )
$sorting array

suggest() public method

public suggest ( mixed $column, array $conditions, integer $limit ) : array
$column mixed
$conditions array
$limit integer
return array

Property Details

$data protected property

protected array $data
return array