Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • cGuiBackendHelpbox
  • cGuiFileOverview
  • cGuiFoldingRow
  • cGuiList
  • cGuiMenu
  • cGuiNavigation
  • cGuiNotification
  • cGuiObjectPager
  • cGuiPage
  • cGuiScrollList
  • cGuiSourceEditor
  • cGuiTableForm
  • cGuiTree
  • cPager
  • cTemplate
  • cTree
  • cTreeItem
  • NoteLink
  • NoteList
  • NoteListItem
  • NoteView
  • TODOBackendList
  • TODOLink
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cPager

cPager Basic pager class without presentation logic

Package: Core\GUI
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at classes/class.pager.php
Methods summary
public
# __construct( integer $items, integer $itemsPerPage, integer $currentPage )

Constructor Function Initializes the pager

Constructor Function Initializes the pager

Parameters

$items
Amount of items
$itemsPerPage
Items displayed per page
$currentPage
Defines the current page
public integer
# getCurrentPage( )

Returns the current page

Returns the current page

Returns

integer
public boolean
# isFirstPage( )

Returns if the currentPage pointer is the first page.

Returns if the currentPage pointer is the first page.

Returns

boolean
True if we're on the first page.
public boolean
# isLastPage( )

Returns if the currentPage pointer is the last page.

Returns if the currentPage pointer is the last page.

Returns

boolean
True if we're on the last page.
public integer
# getMaxPages( )

Returns the amount of pages.

Returns the amount of pages.

Returns

integer
Page count
public array
# getPagesInRange( )

Returns an array with the pager structure.

Returns an array with the pager structure.

Array format: Key : Page Number Value: | for "...", "current" for the current item, page number otherwise

Returns

array
Pager structure
Properties summary
private integer $_items

Amount of items

Amount of items

#
private integer $_itemPadding

Item padding (before and after the current item)

Item padding (before and after the current item)

#
private integer $_previousItems

Items on the left side

Items on the left side

#
private integer $_nextItems

Items on the right side

Items on the right side

#
private integer $_currentPage

Current page

Current page

#
private integer $_itemsPerPage

Items per page

Items per page

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen