PHP Class Grido\DataSources\ArraySource

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

Protected Properties

Свойство Type Description
$data array

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

__construct() public méthode

public __construct ( array $data )
$data array

compare() public méthode

public compare ( string $actual, string $condition, mixed $expected ) : boolean
$actual string
$condition string
$expected mixed
Résultat boolean

filter() public méthode

public filter ( array $conditions )
$conditions array

getCount() public méthode

public getCount ( ) : integer
Résultat integer

getData() public méthode

public getData ( ) : array
Résultat array

limit() public méthode

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

makeWhere() protected méthode

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

sort() public méthode

public sort ( array $sorting )
$sorting array

suggest() public méthode

public suggest ( mixed $column, array $conditions, integer $limit ) : array
$column mixed
$conditions array
$limit integer
Résultat array

Property Details

$data protected_oe property

protected array $data
Résultat array