Skip to content

icms_view_PageNav

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_view_PageNav

Class to facilitate navigation in a multi page document/list

  • Class name: icms_view_PageNav
  • Namespace:

Properties

$total

public mixed $total
  • Visibility: public

$perpage

public mixed $perpage
  • Visibility: public

$current

public mixed $current
  • Visibility: public

$url

public mixed $url
  • Visibility: public

Methods

__construct

mixed icms_view_PageNav::__construct(int total_items, int items_perpage, int current_start, string start_name, string extra_arg)

Constructor

  • Visibility: public

Arguments

  • total_items int - <p>Total number of items</p>
  • items_perpage int - <p>Number of items per page</p>
  • current_start int - <p>First item on the current page</p>
  • start_name string - <p>Name for "start" or "offset"</p>
  • extra_arg string - <p>Additional arguments to pass in the URL</p>

renderNav

string icms_view_PageNav::renderNav(int offset)

Create text navigation

  • Visibility: public

Arguments

  • offset int

renderSelect

string icms_view_PageNav::renderSelect(bool showbutton)

Create a navigational dropdown list

  • Visibility: public

Arguments

  • showbutton bool - <p>Show the "Go" button?</p>

renderImageNav

string icms_view_PageNav::renderImageNav(int offset)

Create navigation with images

  • Visibility: public

Arguments

  • offset int
Clone this wiki locally