a couple of php classes and interfaces for paginations