array getLinks(
[integer
$pageID = null], [string
$next_html = ''])
|
|
Returns back/next/first/last and page links, both as ordered and associative array.
NB: in original PEAR::Pager this method accepted two parameters, $back_html and $next_html. Now the only parameter accepted is an integer ($pageID), since the html text for prev/next links can be set in the constructor. If a second parameter is provided, then the method act as it previously did. This hack's only purpose is to mantain backward compatibility.
Tags:
Overrides
Pager_Common::getLinks() (Returns back/next/first/last and page links, both as ordered and associative array.)
Parameters:
array getPageRangeByPageId(
[integer
$pageid = null])
|
|
Given a PageId, it returns the limits of the range of pages displayed.
While getOffsetByPageId() returns the offset of the data within the current page, this method returns the offsets of the page numbers interval. E.g., if you have pageId=3 and delta=10, it will return (1, 10). PageID of 8 would give you (1, 10) as well, because 1 <= 8 <= 10. PageID of 11 would give you (11, 20). If the method is called without parameter, pageID is set to currentPage#.
Tags:
Overrides
Pager_Common::getPageRangeByPageId() (parent method not documented)
Parameters: