Creating your own scrolling style requires that you implement
Zend_Paginator_ScrollingStyle_Interface, which defines
a single method,
public function getPages(Zend_Paginator $paginator, $pageRange = null);
This method should calculate a lower and upper bound for page numbers within the range of so-called "local" pages (that is, pages that are nearby the current page).
Unless it extends another scrolling style (see
Zend_Paginator_ScrollingStyle_Elastic for an example),
your custom scrolling style will inevitably end with something
similar to the following line of code:
return $paginator->getPagesInRange($lowerBound, $upperBound);
There's nothing special about this call; it's merely a convenience method to check the validity of the lower and upper bound and return an array of the range to the paginator.
When you're ready to use your new scrolling style, you'll need to
Zend_Paginator what directory to look in. To do
that, do the following:
$prefix = 'My_Paginator_ScrollingStyle';
$path = 'My/Paginator/ScrollingStyle/';