|
XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
| __construct ($total_results, $items_page, $current_page, $steps=5) | |
| display ($caption=true, $showing=0) | |
| get_showing () | |
| render ($caption, $showing=0) | |
| set_template ($path) | |
| start () | |
| steps () | |
| target_url () | |
Private Attributes | |
| $current_page | |
| $displayed = false | |
| $items_page | |
| $rendered = '' | |
| $showing = '' | |
| $start = 0 | |
| $steps = 5 | |
| $template = '' | |
| $total_results | |
| $url = '' | |
Definition at line 11 of file pagenav.php.
| RMPageNav::__construct | ( | $total_results, | |
| $items_page, | |||
| $current_page, | |||
$steps = 5 |
|||
| ) |
Constructor
| int | Total results number |
| int | Items per page |
| int | Current Page |
| int | Steps to show when number of pages exceed the specified number |
Definition at line 32 of file pagenav.php.
References $current_page, $items_page, $steps, $total_results, RMTemplate\get(), and steps().

| RMPageNav::display | ( | $caption = true, |
|
$showing = 0 |
|||
| ) |
Displays the navbar
Definition at line 163 of file pagenav.php.
References $showing, and render().

| RMPageNav::get_showing | ( | ) |
| RMPageNav::render | ( | $caption, | |
$showing = 0 |
|||
| ) |
This method render the navigation bar with pages and all information. Also creates the message "Shogin ..." that can be get after.
| bool | INdicates if this method must show the navbar or only render it |
Definition at line 103 of file pagenav.php.
References $current_page, $items_page, $rendered, $showing, $start, $steps, $template, $total_results, $url, __(), RMTemplate\get(), start(), and steps().
Referenced by display().


| RMPageNav::set_template | ( | $path | ) |
Set the template to use with render
| string | Path to template file |
Definition at line 92 of file pagenav.php.
References $path.
| RMPageNav::start | ( | ) |
Get start number
Definition at line 84 of file pagenav.php.
References $start.
Referenced by render().

| RMPageNav::steps | ( | ) |
Set or gets the step numbers
| int | Steps number |
Definition at line 64 of file pagenav.php.
References $steps.
Referenced by __construct(), and render().

| RMPageNav::target_url | ( | ) |
Set or gets the url for pages. URL must contain the string {PAGE_NUM} that will replaced for the page number (eg. /somepage.php?param=something&page={PAGE_NUM})
| string | Target url |
Definition at line 48 of file pagenav.php.
References $url.
|
private |
Definition at line 15 of file pagenav.php.
Referenced by __construct(), and render().
|
private |
Definition at line 19 of file pagenav.php.
|
private |
Definition at line 14 of file pagenav.php.
Referenced by __construct(), and render().
|
private |
Definition at line 20 of file pagenav.php.
Referenced by render().
|
private |
Definition at line 18 of file pagenav.php.
Referenced by display(), get_showing(), and render().
|
private |
Definition at line 22 of file pagenav.php.
|
private |
Definition at line 16 of file pagenav.php.
Referenced by __construct(), render(), and steps().
|
private |
Definition at line 21 of file pagenav.php.
Referenced by render().
|
private |
Definition at line 13 of file pagenav.php.
Referenced by __construct(), and render().
|
private |
Definition at line 17 of file pagenav.php.
Referenced by render(), and target_url().