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.
category |
System |
---|---|
package |
Extensions |
subpackage |
Helpers |
_trimArray(string|array $entry) : array|string
string|array
array|string
getFilterParameters(\DataTableColumnCollection $columns) : array
Notice: Multiple string values need to be sent as concatenated strings with "||" as the delimiter.
Throws |
|
---|
array
getOrderByClause(\DataTableColumnCollection $columns) : string
This method will check the order parameter of the DataTables request and return the appropriate ORDER BY clause.
Notice: DataTables sends the zero-based index of the table column and not the name. If the column order changes then the method needs to be updated.
Throws |
|
---|
string