Index: Paginator.php =================================================================== --- Paginator.php (revision 22554) +++ Paginator.php (working copy) @@ -79,6 +79,15 @@ protected static $_defaultItemCountPerPage = 10; /** + * Default number of local pages (i.e., the number of discretes + * page numbers that will be displayed, including the current + * page number) + * + * @var int + */ + protected static $_defaultPageRange = 10; + + /** * Scrolling style plugin loader * * @var Zend_Loader_PluginLoader @@ -154,7 +163,7 @@ * * @var integer */ - protected $_pageRange = 10; + protected $_pageRange = null; /** * Pages @@ -376,6 +385,26 @@ } /** + * Get the default page range + * + * @return int + */ + public static function getDefaultPageRange() + { + return self::$_defaultPageRange; + } + + /** + * Set the default page range + * + * @param int $count + */ + public static function setDefaultPageRange($count) + { + self::$_defaultPageRange = (int) $count; + } + + /** * Sets a cache object * * @param Zend_Cache_Core $cache @@ -788,6 +817,10 @@ */ public function getPageRange() { + if (empty($this->_pageRange)) { + $this->_pageRange = self::getDefaultPageRange(); + } + return $this->_pageRange; }