Datatable
Datatable copied to clipboard
Version 1.10 needs to be treated as a first class citizen.
Version 1.10 of jQuery Datatables has been released in May, 2014 and Datatables still does not properly support it.
I want to have support for 1.10 done by the end of the week. The plan is:
- Create a new class (
Chumper\Datatable\InputEngine) which when initialized will determine if the query needs to be handled by Datatables (Datatable::shouldHandle) and will choose a class that implements theChumper\Datatable\Response\VersionResponseinterface. - Create two implementations of the
VersionResponseinterface, one for v1.9, and another for v1.10. - Abstract away all of the ordering, searching and limiting code away to the class implementing the
VersionResponseinterface - Update the existing two engines to use the new
VersionResponseimplementations to get their ordering. - Create a function inside
VersionResponsethat allows outputting data that the Datatables will be able to render.