PHP Class Yajra\Datatables\Datatables

Mostrar archivo Open project: yajra/laravel-datatables-oracle Class Usage Examples

Protected Properties

Property Type Description
$builder Yajra\Datatables\Html\Builder Datatables builder.
$request Request Datatables request object.

Public Methods

Method Description
__construct ( Request $request ) Datatables constructor.
collection ( Collection | mixed $builder ) : CollectionEngine Datatables using Collection.
eloquent ( Builder | mixed $builder ) : Yajra\Datatables\Engines\EloquentEngine Datatables using Eloquent Builder.
getHtmlBuilder ( ) : Builder Get html builder class.
getRequest ( ) : Request Get request object.
of ( mixed $object ) : mixed Gets query and returns instance of class.
queryBuilder ( Builder | mixed $builder ) : QueryBuilderEngine Datatables using Query Builder.

Method Details

__construct() public method

Datatables constructor.
public __construct ( Request $request )
$request Request

collection() public method

Datatables using Collection.
public collection ( Collection | mixed $builder ) : CollectionEngine
$builder Illuminate\Support\Collection | mixed
return Yajra\Datatables\Engines\CollectionEngine

eloquent() public method

Datatables using Eloquent Builder.
public eloquent ( Builder | mixed $builder ) : Yajra\Datatables\Engines\EloquentEngine
$builder Illuminate\Database\Eloquent\Builder | mixed
return Yajra\Datatables\Engines\EloquentEngine

getHtmlBuilder() public method

Get html builder class.
public getHtmlBuilder ( ) : Builder
return Yajra\Datatables\Html\Builder

getRequest() public method

Get request object.
public getRequest ( ) : Request
return Request

of() public static method

Gets query and returns instance of class.
public static of ( mixed $object ) : mixed
$object mixed
return mixed

queryBuilder() public method

Datatables using Query Builder.
public queryBuilder ( Builder | mixed $builder ) : QueryBuilderEngine
$builder Illuminate\Database\Query\Builder | mixed
return Yajra\Datatables\Engines\QueryBuilderEngine

Property Details

$builder protected_oe property

Datatables builder.
protected Builder,Yajra\Datatables\Html $builder
return Yajra\Datatables\Html\Builder

$request protected_oe property

Datatables request object.
protected Request,Yajra\Datatables $request
return Request