boonebgorges/boones-pagination — pull request #1 by r-a-y (2012-04-28 19:26:14+00:00)
Title: Add arguments in the constructor

Hey Boone,

Was working on a CPT plugin and needed pagination. As always, you had some useful code lying around for this already!

When I was extending the class, I found it useful to add arguments to the constructor to simplify the setup process. If this pull request is merged, this will minimize the number of methods that need to be extended in sub-classes (in my case anyway!).

The only methods I would need to extend going forward are the constructor and the currently_viewing_text() method. (The two being omitted would be the "setup_get_*()" methods.)

I've tried to make this as backward-compatible as possible. Let me know what you think.

No biggie if this doesn't get merged back in. Just thought it might be useful!