Back to Pagination class

Method getPagesCounter

public string
getPagesCounter
()
Create and return the pagination pages counter string, ie. Page 2 of 4.
Returns
  • string Pagination pages counter string.
Since
  • 1.5
Class: Pagination
Project: Joomla

Method getPagesCounter - Source code

/**
 * Create and return the pagination pages counter string, ie. Page 2 of 4.
 *
 * @return  string   Pagination pages counter string.
 *
 * @since   1.5
 */
public function getPagesCounter()
{
    $html = null;
    if ($this->pagesTotal > 1) {
        $html .= Text::sprintf('JLIB_HTML_PAGE_CURRENT_OF_TOTAL', $this->pagesCurrent, $this->pagesTotal);
    }
    return $html;
}