04-18-2009, 05:04 PM
|
#17 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
Quote:
|
Maybe I'm missing something, but why not just use return range(1, $this->totalPages) in place of that entire chunk?
|
Don't look at me!
Also, getCurrentPage() could be reduced to:
PHP Code:
public function getCurrentPage(){ return array($this->currentPage,$this->totalPages); }
|
|
|
|