Class DataTableHelper

Class DataTableHelper

This class contains helper methods for datatable manipulation. Create an instance and define the columns of your table and their respective database fields. You can also provide two fields separated with a space for concatenated string.

Methods summary

public getOrderByClause( DataTableColumnCollection $columns ) : string

Get ORDER BY clause.

public getFilterParameters( DataTableColumnCollection $columns ) : array

Get the filtering parameters of the request.

protected _trimArray( string|array $entry ) : array|string

Recursively trim the array values.