XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XoopsPageNav Class Reference

Public Member Functions

 __construct ($total_items, $items_perpage, $current_start, $start_name='start', $extra_arg='')
 
 renderNav ($offset=4)
 
 renderSelect ($showbutton=false)
 
 renderImageNav ($offset=4)
 

Data Fields

 $total
 
 $perpage
 
 $current
 
 $url
 

Detailed Description

Definition at line 16 of file pagenav.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( $total_items,
$items_perpage,
$current_start,
$start_name = 'start',
$extra_arg = '' )

#- Constructor

Parameters
int$total_itemsTotal number of items
int$items_perpageNumber of items per page
int$current_startFirst item on the current page
string$start_nameName for "start" or "offset"
string$extra_argAdditional arguments to pass in the URL

Definition at line 36 of file pagenav.php.

Member Function Documentation

◆ renderImageNav()

renderImageNav ( $offset = 4)

Create navigation with images

Parameters
int$offset
Returns
string

Definition at line 132 of file pagenav.php.

◆ renderNav()

renderNav ( $offset = 4)

Create text navigation

Parameters
int$offset
Returns
string

Definition at line 53 of file pagenav.php.

◆ renderSelect()

renderSelect ( $showbutton = false)

Create a navigational dropdown list

Parameters
bool$showbuttonShow the "Go" button?
Returns
string

Definition at line 97 of file pagenav.php.

Field Documentation

◆ $current

$current

Definition at line 23 of file pagenav.php.

◆ $perpage

$perpage

Definition at line 22 of file pagenav.php.

◆ $total

$total

#+ @access private

Definition at line 21 of file pagenav.php.

◆ $url

$url

Definition at line 24 of file pagenav.php.


The documentation for this class was generated from the following file: