Grid_Pagination
Handles the HTML for grid pagination
Tags
Table of Contents
- $args : mixed
- $query : mixed
- $current_page : mixed
- $max_num_pages : mixed
- $paging_type : mixed
- __construct() : mixed
- Constructor.
- get_html() : string
- Retrieves the HTML for the pagination.
- get_first_link() : string
- Retrieve the First link HTML.
- get_last_link() : string
- Retrieve the Last link HTML.
- get_next_link() : string
- Retrieve the Next link HTML.
- get_page_number_links() : string
- Retrieve the Number links HTML.
- get_prev_link() : string
- Retrieve the Previous link HTML.
- has_first_last_links() : bool
- Checks whether First | Last links are enabled
- has_page_number_links() : bool
- Checks whether Number links are enabled
- has_prev_next_links() : bool
- Checks whether Previous | Next links are enabled
Properties
$args
public
mixed
$args
$query
public
mixed
$query
$current_page
protected
mixed
$current_page
$max_num_pages
protected
mixed
$max_num_pages
$paging_type
protected
mixed
$paging_type
Methods
__construct()
Constructor.
public
__construct(Grid_Query $query, Table_Args $args) : mixed
Parameters
- $query : Grid_Query
- $args : Table_Args
Return values
mixed —get_html()
Retrieves the HTML for the pagination.
public
get_html() : string
Return values
string —get_first_link()
Retrieve the First link HTML.
protected
get_first_link() : string
Return values
string —get_last_link()
Retrieve the Last link HTML.
protected
get_last_link() : string
Return values
string —get_next_link()
Retrieve the Next link HTML.
protected
get_next_link() : string
Return values
string —get_page_number_links()
Retrieve the Number links HTML.
protected
get_page_number_links() : string
Return values
string —get_prev_link()
Retrieve the Previous link HTML.
protected
get_prev_link() : string
Return values
string —has_first_last_links()
Checks whether First | Last links are enabled
protected
has_first_last_links() : bool
Return values
bool —has_page_number_links()
Checks whether Number links are enabled
protected
has_page_number_links() : bool
Return values
bool —has_prev_next_links()
Checks whether Previous | Next links are enabled
protected
has_prev_next_links() : bool