Documentation

DataTable
in package

Table of Contents

$callback  : callable
$filteredQuery  : QueryBuilder|null
$query  : QueryBuilder
$request  : array<string|int, mixed>
$response  : array<string|int, mixed>
$totalRecordQuery  : QueryBuilder
__construct()  : mixed
callback()  : mixed
orderable()  : mixed
Column key is javascript data column name (example), value is mysql query column name (t.example)
result()  : array<string|int, mixed>
searchable()  : mixed
Column key is javascript data column name (example), value is mysql query column name (t.example)
table()  : QueryBuilder
callCallback()  : array<string|int, mixed>
recordsTotalQuery()  : mixed
Toplam kayıt sayısı

Properties

$request

private array<string|int, mixed> $request

$response

private array<string|int, mixed> $response = ['recordsTotal' => 0, 'recordsFiltered' => 0, 'data' => []]

Methods

__construct()

public __construct(array<string|int, mixed> $request) : mixed
Parameters
$request : array<string|int, mixed>
Return values
mixed

callback()

public callback(callable $callback) : mixed
Parameters
$callback : callable

= function(array $row)

Return values
mixed

orderable()

Column key is javascript data column name (example), value is mysql query column name (t.example)

public orderable(array<string|int, mixed> $columns) : mixed
Parameters
$columns : array<string|int, mixed>
Return values
mixed

result()

public result([int $fetchType = PDO::FETCH_OBJ ]) : array<string|int, mixed>
Parameters
$fetchType : int = PDO::FETCH_OBJ
Tags
throws
SqlErrorException
Return values
array<string|int, mixed>

searchable()

Column key is javascript data column name (example), value is mysql query column name (t.example)

public searchable(array<string|int, mixed> $columns[, int $minLength = 3 ]) : mixed
Parameters
$columns : array<string|int, mixed>
$minLength : int = 3
Return values
mixed

callCallback()

protected callCallback( $datas) : array<string|int, mixed>
Parameters
$datas :
Return values
array<string|int, mixed>

recordsTotalQuery()

Toplam kayıt sayısı

protected recordsTotalQuery() : mixed
Return values
mixed

Search results