|
string moodle_url | $baseurl |
| If this is a string then it is the url which will be appended with $pagevar, an equals sign and the page number.
|
|
string | $firstlink = null |
| A HTML link representing the first page.
|
|
string | $lastlink = null |
| A HTML link representing the last page.
|
|
int | $maxdisplay = 18 |
| The maximum number of pagelinks to display.
|
|
string | $nextlink = null |
| A HTML link representing the "next" page.
|
|
int | $page |
| The page you are currently viewing.
|
|
array | $pagelinks = [] |
| An array of strings.
|
|
string | $pagevar |
| This is the variable name that you use for the pagenumber in your code (ie.
|
|
int | $perpage |
| The number of entries that should be shown per page.
|
|
string | $previouslink = null |
| A HTML link representing the "previous" page.
|
|
int | $totalcount |
| The total number of entries to be pages through.
|
|
◆ __construct()
core\output\paging_bar::__construct |
( |
| $totalcount, |
|
|
| $page, |
|
|
| $perpage, |
|
|
| $baseurl, |
|
|
| $pagevar = 'page' ) |
Constructor paging_bar with only the required params.
- Parameters
-
int | $totalcount | The total number of entries available to be paged through |
int | $page | The page you are currently viewing |
int | $perpage | The number of entries that should be shown per page |
string | moodle_url | $baseurl | url of the current page, the $pagevar parameter is added |
string | $pagevar | name of page parameter that holds the page number |
◆ export_for_template()
core\output\paging_bar::export_for_template |
( |
renderer_base | $output | ) |
|
Export for template.
- Parameters
-
renderer_base | $output | The renderer. |
- Return values
-
Implements core\output\templatable.
◆ prepare()
Prepares the paging bar for output.
This method validates the arguments set up for the paging bar and then produces fragments of HTML to assist display later on.
- Parameters
-
- Exceptions
-
◆ $baseurl
string moodle_url core\output\paging_bar::$baseurl |
If this is a string then it is the url which will be appended with $pagevar, an equals sign and the page number.
If this is a moodle_url object then the pagevar param will be replaced by the page no, for each page.
◆ $pagelinks
array core\output\paging_bar::$pagelinks = [] |
An array of strings.
One of them is just a string: the current page
◆ $pagevar
string core\output\paging_bar::$pagevar |
This is the variable name that you use for the pagenumber in your code (ie.
'tablepage', 'blogpage', etc)
◆ $totalcount
int core\output\paging_bar::$totalcount |
The total number of entries to be pages through.
The documentation for this class was generated from the following file:
- lib/classes/output/paging_bar.php