PHP Класс Grido\DataSources\ArraySource

Автор: Josef Kříž ([email protected])
Автор: Petr Bugyík
Наследование: extends Nette\Object, implements Grido\DataSources\IDataSource
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$data array

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
makeWhere ( Grido\Components\Filters\Condition $condition, array $data = NULL ) : array This method needs tests!

Описание методов

__construct() публичный Метод

public __construct ( array $data )
$data array

compare() публичный Метод

public compare ( string $actual, string $condition, mixed $expected ) : boolean
$actual string
$condition string
$expected mixed
Результат boolean

filter() публичный Метод

public filter ( array $conditions )
$conditions array

getCount() публичный Метод

public getCount ( ) : integer
Результат integer

getData() публичный Метод

public getData ( ) : array
Результат array

limit() публичный Метод

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

makeWhere() защищенный Метод

This method needs tests!
protected makeWhere ( Grido\Components\Filters\Condition $condition, array $data = NULL ) : array
$condition Grido\Components\Filters\Condition
$data array
Результат array

sort() публичный Метод

public sort ( array $sorting )
$sorting array

suggest() публичный Метод

public suggest ( mixed $column, array $conditions, integer $limit ) : array
$column mixed
$conditions array
$limit integer
Результат array

Описание свойств

$data защищенное свойство

protected array $data
Результат array