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 CACHE_TAG_PREFIX = 'Zend_Paginator_'
The cache tag prefix used to namespace Paginator results in the cache
DetailsZend_Paginator_Adapter_Interface $_adapter = 'null'Adapter
DetailsZend_Loader_PluginLoader $_adapterLoader = 'null'Adapter plugin loader
DetailsZend_Cache_Core $_cache = ''Cache object
Detailsbool $_cacheEnabled = 'true'Enable or disable the cache by Zend_Paginator instance
DetailsZend_Config $_config = 'null'Configuration file
Detailsinteger $_currentItemCount = 'null'Number of items in the current page
DetailsTraversable $_currentItems = 'null'Current page items
Detailsinteger $_currentPageNumber = '1'Current page number (starting from 1)
Detailsint $_defaultItemCountPerPage = '10'Default item count per page
Detailsstring $_defaultScrollingStyle = 'Sliding'Default scrolling style
DetailsZend_Filter_Interface $_filter = 'null'Result filter
Detailsinteger $_itemCountPerPage = 'null'Number of items per page
Detailsinteger $_pageCount = 'null'Number of pages
Detailsinteger $_pageRange = '10'Number of local pages (i.e., the number of discrete page numbers that will be displayed, including the current page number)
Detailsarray $_pages = 'null'Pages
DetailsZend_Loader_PluginLoader $_scrollingStyleLoader = 'null'Scrolling style plugin loader
DetailsZend_View_Interface $_view = 'null'View instance used for self rendering
Details__construct(
Zend_Paginator_Adapter_Interface|Zend_Paginator_AdapterAggregate $adapter
)
:
Constructor.
Details__toString(
)
:
stringSerializes the object as a string. Proxies to {@link render()}.
Details_cacheEnabled(
)
:
boolTells if there is an active cache object and if the cache has not been desabled
Details_calculatePageCount(
)
:
integerCalculates the page count.
Details_createPages(
string $scrollingStyle
=
null
)
:
stdClassCreates the page collection.
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_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_loadScrollingStyle(
string $scrollingStyle
=
null
)
:
Zend_Paginator_ScrollingStyle_InterfaceLoads a scrolling style.
DetailsaddAdapterPrefixPath(
string $prefix, string $path
)
:
Adds an adapter prefix path to the plugin loader.
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/'
);
DetailsaddScrollingStylePrefixPath(
string $prefix, string $path
)
:
Adds a scrolling style prefix path to the plugin loader.
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/'
);
DetailsclearPageItemCache(
int $pageNumber
=
null
)
:
Zend_PaginatorClear the page item cache.
Detailscount(
)
:
integerReturns the number of pages.
Detailsfactory(
mixed $data, string $adapter
=
self, array $prefixPaths
=
null
)
:
Zend_PaginatorFactory.
DetailsgetAbsoluteItemNumber(
integer $relativeItemNumber, integer $pageNumber
=
null
)
:
integerReturns the absolute item number for the specified item.
DetailsgetAdapter(
)
:
Zend_Paginator_Adapter_InterfaceReturns the adapter.
DetailsgetAdapterLoader(
)
:
Zend_Loader_PluginLoaderReturns the adapter loader. If it doesn't exist it's created.
DetailsgetCurrentItemCount(
)
:
integerReturns the number of items for the current page.
DetailsgetCurrentItems(
)
:
TraversableReturns the items for the current page.
DetailsgetCurrentPageNumber(
)
:
integerReturns the current page number.
DetailsgetDefaultItemCountPerPage(
)
:
intGet the default item count per page
DetailsgetDefaultScrollingStyle(
)
:
stringReturns the default scrolling style.
DetailsgetFilter(
)
:
Zend_Filter_InterfaceGet the filter
DetailsgetItem(
integer $itemNumber, integer $pageNumber
=
null
)
:
mixedReturns an item from a page. The current page is used if there's no page sepcified.
DetailsgetItemCount(
mixed $items
)
:
integerReturns the number of items in a collection.
DetailsgetItemCountPerPage(
)
:
integerReturns the number of items per page.
DetailsgetItemsByPage(
$pageNumber
)
:
TraversableReturns the items for a given page.
DetailsgetIterator(
)
:
TraversableReturns a foreach-compatible iterator.
DetailsgetPageItemCache(
)
:
arrayReturns the page item cache.
DetailsgetPageRange(
)
:
integerReturns the page range (see property declaration above).
DetailsgetPages(
string $scrollingStyle
=
null
)
:
arrayReturns the page collection.
DetailsgetPagesInRange(
integer $lowerBound, integer $upperBound
)
:
arrayReturns a subset of pages within a given range.
DetailsgetScrollingStyleLoader(
)
:
Zend_Loader_PluginLoaderReturns the scrolling style loader. If it doesn't exist it's created.
DetailsgetTotalItemCount(
)
:
integerReturns the total number of items available.
DetailsgetView(
)
:
Zend_View_Interface|nullRetrieves the view instance. If none registered, attempts to pull f rom ViewRenderer.
DetailsnormalizeItemNumber(
integer $itemNumber
)
:
integerBrings the item number in range of the page.
DetailsnormalizePageNumber(
integer $pageNumber
)
:
integerBrings the page number in range of the paginator.
Detailsrender(
Zend_View_Interface $view
=
null
)
:
stringRenders the paginator.
DetailssetCache(
Zend_Cache_Core $cache
)
:
Sets a cache object
DetailssetCacheEnabled(
bool $enable
)
:
Zend_PaginatorEnables/Disables the cache for this instance
DetailssetConfig(
Zend_Config $config
)
:
Set a global config
DetailssetCurrentPageNumber(
integer $pageNumber
)
:
Zend_PaginatorSets the current page number.
DetailssetDefaultItemCountPerPage(
int $count
)
:
Set the default item count per page
DetailssetDefaultScrollingStyle(
string $scrollingStyle
=
Sliding
)
:
Sets the default scrolling style.
DetailssetFilter(
Zend_Filter_Interface $filter
)
:
Zend_PaginatorSet a filter chain
DetailssetItemCountPerPage(
integer $itemCountPerPage
)
:
Zend_PaginatorSets the number of items per page.
DetailssetPageRange(
integer $pageRange
)
:
Zend_PaginatorSets the page range (see property declaration above).
DetailssetView(
Zend_View_Interface $view
=
null
)
:
Zend_PaginatorSets the view object.
DetailstoJson(
)
:
stringReturns the items of the current page as JSON.
Details