Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
string INTERNAL_ADAPTER = 'Zend_Paginator_Adapter_Internal'
      Specifies that the factory should try to detect the proper adapter type first
 Details
 Details CACHE_TAG_PREFIX = 'Zend_Paginator_'
      The cache tag prefix used to namespace Paginator results in the cache
 Details
 DetailsZend_Paginator_Adapter_Interface $_adapter = 'null'Adapter
 Details
 DetailsZend_Loader_PluginLoader $_adapterLoader = 'null'Adapter plugin loader
 Details
 DetailsZend_Cache_Core $_cache = ''Cache object
 Details
 Detailsbool $_cacheEnabled = 'true'Enable or disable the cache by Zend_Paginator instance
 Details
 DetailsZend_Config $_config = 'null'Configuration file
 Details
 Detailsinteger $_currentItemCount = 'null'Number of items in the current page
 Details
 DetailsTraversable $_currentItems = 'null'Current page items
 Details
 Detailsinteger $_currentPageNumber = '1'Current page number (starting from 1)
 Details
 Detailsint $_defaultItemCountPerPage = '10'Default item count per page
 Details
 Detailsstring $_defaultScrollingStyle = 'Sliding'Default scrolling style
 Details
 DetailsZend_Filter_Interface $_filter = 'null'Result filter
 Details
 Detailsinteger $_itemCountPerPage = 'null'Number of items per page
 Details
 Detailsinteger $_pageCount = 'null'Number of pages
 Details
 Detailsinteger $_pageRange = '10'Number of local pages (i.e., the number of discrete page numbers that will be displayed, including the current page number)
 Details
 Detailsarray $_pages = 'null'Pages
 Details
 DetailsZend_Loader_PluginLoader $_scrollingStyleLoader = 'null'Scrolling style plugin loader
 Details
 DetailsZend_View_Interface $_view = 'null'View instance used for self rendering
 Details
 Details__construct(
          Zend_Paginator_Adapter_Interface|Zend_Paginator_AdapterAggregate $adapter
          )
        
        :
        Constructor.
 Details
 Details__toString(
          
          )
        
        :
        stringSerializes the object as a string. Proxies to {@link render()}.
 Details
 Details_cacheEnabled(
          
          )
        
        :
        boolTells if there is an active cache object and if the cache has not been desabled
 Details
 Details_calculatePageCount(
          
          )
        
        :
        integerCalculates the page count.
 Details
 Details_createPages(
          string $scrollingStyle
              =
              null
          )
        
        :
        stdClassCreates the page collection.
 Details
 Details_getCacheId(
          int $page
              =
              null
          )
        
        :
        stringMakes an Id for the cache Depends on the adapter object and the page number
Used to store item in cache from that Paginator instance and that current page
 Details
 Details_getCacheInternalId(
          
          )
        
        :
        stringGet the internal cache id Depends on the adapter and the item count per page
Used to tag that unique Paginator instance in cache
 Details
 Details_loadScrollingStyle(
          string $scrollingStyle
              =
              null
          )
        
        :
        Zend_Paginator_ScrollingStyle_InterfaceLoads a scrolling style.
 Details
 DetailsaddAdapterPrefixPath(
          string $prefix, string $path
          )
        
        :
        Adds an adapter prefix path to the plugin loader.
 Details
 DetailsaddAdapterPrefixPaths(
          array $prefixPaths
          )
        
        :
        Adds an array of adapter prefix paths to the plugin loader.
$prefixPaths = array(
    'My_Paginator_Adapter'   => 'My/Paginator/Adapter/',
    'Your_Paginator_Adapter' => 'Your/Paginator/Adapter/'
);
 Details
 DetailsaddScrollingStylePrefixPath(
          string $prefix, string $path
          )
        
        :
        Adds a scrolling style prefix path to the plugin loader.
 Details
 DetailsaddScrollingStylePrefixPaths(
          array $prefixPaths
          )
        
        :
        Adds an array of scrolling style prefix paths to the plugin loader.
$prefixPaths = array(
    'My_Paginator_ScrollingStyle'   => 'My/Paginator/ScrollingStyle/',
    'Your_Paginator_ScrollingStyle' => 'Your/Paginator/ScrollingStyle/'
);
 Details
 DetailsclearPageItemCache(
          int $pageNumber
              =
              null
          )
        
        :
        Zend_PaginatorClear the page item cache.
 Details
 Detailscount(
          
          )
        
        :
        integerReturns the number of pages.
 Details
 Detailsfactory(
          mixed $data, string $adapter
              =
              self, array $prefixPaths
              =
              null
          )
        
        :
        Zend_PaginatorFactory.
 Details
 DetailsgetAbsoluteItemNumber(
          integer $relativeItemNumber, integer $pageNumber
              =
              null
          )
        
        :
        integerReturns the absolute item number for the specified item.
 Details
 DetailsgetAdapter(
          
          )
        
        :
        Zend_Paginator_Adapter_InterfaceReturns the adapter.
 Details
 DetailsgetAdapterLoader(
          
          )
        
        :
        Zend_Loader_PluginLoaderReturns the adapter loader. If it doesn't exist it's created.
 Details
 DetailsgetCurrentItemCount(
          
          )
        
        :
        integerReturns the number of items for the current page.
 Details
 DetailsgetCurrentItems(
          
          )
        
        :
        TraversableReturns the items for the current page.
 Details
 DetailsgetCurrentPageNumber(
          
          )
        
        :
        integerReturns the current page number.
 Details
 DetailsgetDefaultItemCountPerPage(
          
          )
        
        :
        intGet the default item count per page
 Details
 DetailsgetDefaultScrollingStyle(
          
          )
        
        :
        stringReturns the default scrolling style.
 Details
 DetailsgetFilter(
          
          )
        
        :
        Zend_Filter_InterfaceGet the filter
 Details
 DetailsgetItem(
          integer $itemNumber, integer $pageNumber
              =
              null
          )
        
        :
        mixedReturns an item from a page. The current page is used if there's no page sepcified.
 Details
 DetailsgetItemCount(
          mixed $items
          )
        
        :
        integerReturns the number of items in a collection.
 Details
 DetailsgetItemCountPerPage(
          
          )
        
        :
        integerReturns the number of items per page.
 Details
 DetailsgetItemsByPage(
           $pageNumber
          )
        
        :
        TraversableReturns the items for a given page.
 Details
 DetailsgetIterator(
          
          )
        
        :
        TraversableReturns a foreach-compatible iterator.
 Details
 DetailsgetPageItemCache(
          
          )
        
        :
        arrayReturns the page item cache.
 Details
 DetailsgetPageRange(
          
          )
        
        :
        integerReturns the page range (see property declaration above).
 Details
 DetailsgetPages(
          string $scrollingStyle
              =
              null
          )
        
        :
        arrayReturns the page collection.
 Details
 DetailsgetPagesInRange(
          integer $lowerBound, integer $upperBound
          )
        
        :
        arrayReturns a subset of pages within a given range.
 Details
 DetailsgetScrollingStyleLoader(
          
          )
        
        :
        Zend_Loader_PluginLoaderReturns the scrolling style loader. If it doesn't exist it's created.
 Details
 DetailsgetTotalItemCount(
          
          )
        
        :
        integerReturns the total number of items available.
 Details
 DetailsgetView(
          
          )
        
        :
        Zend_View_Interface|nullRetrieves the view instance. If none registered, attempts to pull f rom ViewRenderer.
 Details
 DetailsnormalizeItemNumber(
          integer $itemNumber
          )
        
        :
        integerBrings the item number in range of the page.
 Details
 DetailsnormalizePageNumber(
          integer $pageNumber
          )
        
        :
        integerBrings the page number in range of the paginator.
 Details
 Detailsrender(
          Zend_View_Interface $view
              =
              null
          )
        
        :
        stringRenders the paginator.
 Details
 DetailssetCache(
          Zend_Cache_Core $cache
          )
        
        :
        Sets a cache object
 Details
 DetailssetCacheEnabled(
          bool $enable
          )
        
        :
        Zend_PaginatorEnables/Disables the cache for this instance
 Details
 DetailssetConfig(
          Zend_Config $config
          )
        
        :
        Set a global config
 Details
 DetailssetCurrentPageNumber(
          integer $pageNumber
          )
        
        :
        Zend_PaginatorSets the current page number.
 Details
 DetailssetDefaultItemCountPerPage(
          int $count
          )
        
        :
        Set the default item count per page
 Details
 DetailssetDefaultScrollingStyle(
          string $scrollingStyle
              =
              Sliding
          )
        
        :
        Sets the default scrolling style.
 Details
 DetailssetFilter(
          Zend_Filter_Interface $filter
          )
        
        :
        Zend_PaginatorSet a filter chain
 Details
 DetailssetItemCountPerPage(
          integer $itemCountPerPage
          )
        
        :
        Zend_PaginatorSets the number of items per page.
 Details
 DetailssetPageRange(
          integer $pageRange
          )
        
        :
        Zend_PaginatorSets the page range (see property declaration above).
 Details
 DetailssetView(
          Zend_View_Interface $view
              =
              null
          )
        
        :
        Zend_PaginatorSets the view object.
 Details
 DetailstoJson(
          
          )
        
        :
        stringReturns the items of the current page as JSON.
 Details
 Details