mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove trailing whitespace in legacy class files
This commit is contained in:
parent
8a6039b829
commit
c881e73c1d
29 changed files with 481 additions and 483 deletions
|
|
@ -7,35 +7,35 @@
|
|||
* handles page navigation
|
||||
* @version 0.1
|
||||
*
|
||||
* @remarks Getting total counts, number of pages, current page number, number of items per page,
|
||||
* @remarks Getting total counts, number of pages, current page number, number of items per page,
|
||||
* this class implements methods and contains variables for page navigation
|
||||
*/
|
||||
class PageHandler extends Handler implements Iterator
|
||||
{
|
||||
// Number of total items
|
||||
public $total_count = 0;
|
||||
|
||||
|
||||
// Number of total pages
|
||||
public $total_page = 0;
|
||||
|
||||
|
||||
// Current page number
|
||||
public $cur_page = 0;
|
||||
|
||||
|
||||
// Number of page links displayed at one time.
|
||||
public $page_count = 10;
|
||||
|
||||
|
||||
// First page number
|
||||
public $first_page = 1;
|
||||
|
||||
|
||||
// Last page number
|
||||
public $last_page = 1;
|
||||
|
||||
|
||||
// Stepper
|
||||
public $point = 0;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
*
|
||||
* @param int $total_count number of total items
|
||||
* @param int $total_page number of total pages
|
||||
* @param int $cur_page current page number
|
||||
|
|
@ -71,7 +71,7 @@ class PageHandler extends Handler implements Iterator
|
|||
|
||||
/**
|
||||
* Request next page
|
||||
*
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getNextPage(): int
|
||||
|
|
@ -86,7 +86,7 @@ class PageHandler extends Handler implements Iterator
|
|||
|
||||
/**
|
||||
* Return number of page that added offset.
|
||||
*
|
||||
*
|
||||
* @param int $offset
|
||||
* @return int
|
||||
*/
|
||||
|
|
@ -97,7 +97,7 @@ class PageHandler extends Handler implements Iterator
|
|||
|
||||
/**
|
||||
* Rewind iterator stepper.
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function rewind(): void
|
||||
|
|
@ -107,7 +107,7 @@ class PageHandler extends Handler implements Iterator
|
|||
|
||||
/**
|
||||
* Determine if a current iterated item is valid.
|
||||
*
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function valid(): bool
|
||||
|
|
@ -118,7 +118,7 @@ class PageHandler extends Handler implements Iterator
|
|||
|
||||
/**
|
||||
* Get a current iterated page number.
|
||||
*
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function current(): int
|
||||
|
|
@ -128,7 +128,7 @@ class PageHandler extends Handler implements Iterator
|
|||
|
||||
/**
|
||||
* Get a current iterator stepper.
|
||||
*
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function key(): int
|
||||
|
|
@ -138,7 +138,7 @@ class PageHandler extends Handler implements Iterator
|
|||
|
||||
/**
|
||||
* Step up the iterator.
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function next(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue