PHP Class Yajra\Datatables\Engines\CollectionEngine

Author: Arjay Angeles ([email protected])
Inheritance: extends BaseEngine
Show file Open project: yajra/laravel-datatables-oracle

Public Properties

Property Type Description
$collection Illuminate\Support\Collection Collection object
$original_collection Illuminate\Support\Collection Collection object

Public Methods

Method Description
__construct ( Collection $collection, Request $request ) CollectionEngine constructor.
columnSearch ( ) : void Perform column search.
count ( ) : integer Count results.
filter ( Closure $callback, boolean $globalSearch = false ) Set auto filter off and run your own filter.
filtering ( ) : void Perform global search.
make ( boolean $mDataSupport = false, boolean $orderFirst = true ) : Illuminate\Http\JsonResponse Organizes works.
ordering ( ) : void Perform sorting of columns.
paging ( ) : void Perform pagination.
results ( ) : mixed Get results.
showDebugger ( array $output ) : array Append debug parameters on output.
totalCount ( ) : integer Count total items.

Protected Methods

Method Description
serialize ( mixed $collection ) : mixed | null Serialize collection

Method Details

__construct() public method

CollectionEngine constructor.
public __construct ( Collection $collection, Request $request )
$collection Illuminate\Support\Collection
$request Yajra\Datatables\Request

columnSearch() public method

Perform column search.
public columnSearch ( ) : void
return void

count() public method

Count results.
public count ( ) : integer
return integer

filter() public method

Overrides global search.
public filter ( Closure $callback, boolean $globalSearch = false )
$callback Closure
$globalSearch boolean

filtering() public method

Perform global search.
public filtering ( ) : void
return void

make() public method

Organizes works.
public make ( boolean $mDataSupport = false, boolean $orderFirst = true ) : Illuminate\Http\JsonResponse
$mDataSupport boolean
$orderFirst boolean
return Illuminate\Http\JsonResponse

ordering() public method

Perform sorting of columns.
public ordering ( ) : void
return void

paging() public method

Perform pagination.
public paging ( ) : void
return void

results() public method

Get results.
public results ( ) : mixed
return mixed

serialize() protected method

Serialize collection
protected serialize ( mixed $collection ) : mixed | null
$collection mixed
return mixed | null

showDebugger() public method

Append debug parameters on output.
public showDebugger ( array $output ) : array
$output array
return array

totalCount() public method

Count total items.
public totalCount ( ) : integer
return integer

Property Details

$collection public property

Collection object
public Collection,Illuminate\Support $collection
return Illuminate\Support\Collection

$original_collection public property

Collection object
public Collection,Illuminate\Support $original_collection
return Illuminate\Support\Collection