PHP Class Chumper\Datatable\Engines\CollectionEngine

Class CollectionEngine
Inheritance: extends Chumper\Datatable\Engines\BaseEngine
Show file Open project: chumper/datatable Class Usage Examples

Public Methods

Method Description
__construct ( Collection $collection )
count ( ) : integer
getArray ( ) : array
getOption ( $value )
reset ( ) Resets all operations performed on the collection
setCaseSensitive ( $value )
setOrderStrip ( )
setSearchStrip ( )
stripOrder ( )
stripSearch ( )
totalCount ( ) : integer

Protected Methods

Method Description
internalMake ( Collection $columns, array $searchColumns = [] ) --------------PRIVATE FUNCTIONS-----------------

Private Methods

Method Description
compileArray ( $columns )
doInternalOrder ( )
doInternalSearch ( Collection $columns, array $searchColumns )

Method Details

__construct() public method

public __construct ( Collection $collection )
$collection Illuminate\Support\Collection

count() public method

public count ( ) : integer
return integer

getArray() public method

public getArray ( ) : array
return array

getOption() public method

public getOption ( $value )

internalMake() protected method

--------------PRIVATE FUNCTIONS-----------------
protected internalMake ( Collection $columns, array $searchColumns = [] )
$columns Illuminate\Support\Collection
$searchColumns array

reset() public method

Resets all operations performed on the collection
public reset ( )

setCaseSensitive() public method

public setCaseSensitive ( $value )

setOrderStrip() public method

public setOrderStrip ( )

setSearchStrip() public method

public setSearchStrip ( )

stripOrder() public method

public stripOrder ( )

stripSearch() public method

public stripSearch ( )

totalCount() public method

public totalCount ( ) : integer
return integer