Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added some more functionality to the pager
  • Loading branch information
bastianallgeier committed Mar 22, 2010
1 parent 6ba5471 commit b1e7594
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/pager.php
Expand Up @@ -26,6 +26,22 @@ function previous() {
return (self::$page-1 >= 1) ? self::$page-1 : self::$page;
}

function first() {
return 1;
}

function last() {
return self::$pages;
}

function is_first() {
return (self::$page == 1) ? true : false;
}

function is_last() {
return (self::$page == self::$pages) ? true : false;
}

function count() {
return self::$pages;
}
Expand Down

0 comments on commit b1e7594

Please sign in to comment.