-
Notifications
You must be signed in to change notification settings - Fork 0
CI_Pagination
Pagination Class
- Class name: CI_Pagination
- Namespace:
protected string $base_url = ''
Base URL
The page that we're linking to
- Visibility: protected
protected string $prefix = ''
Prefix
- Visibility: protected
protected string $suffix = ''
Suffix
- Visibility: protected
protected integer $total_rows
Total number of items
- Visibility: protected
protected integer $num_links = 2
Number of links to show
Relates to "digit" type links shown before/after the currently viewed page.
- Visibility: protected
public integer $per_page = 10
Items per page
- Visibility: public
public integer $cur_page
Current page
- Visibility: public
protected boolean $use_page_numbers = FALSE
Use page numbers flag
Whether to use actual page numbers instead of an offset
- Visibility: protected
protected string $first_link = '‹ First'
First link
- Visibility: protected
protected string $next_link = '>'
Next link
- Visibility: protected
protected string $prev_link = '<'
Previous link
- Visibility: protected
protected string $last_link = 'Last ›'
Last link
- Visibility: protected
protected integer $uri_segment
URI Segment
- Visibility: protected
protected string $full_tag_open = ''
Full tag open
- Visibility: protected
protected string $full_tag_close = ''
Full tag close
- Visibility: protected
protected string $first_tag_open = ''
First tag open
- Visibility: protected
protected string $first_tag_close = ''
First tag close
- Visibility: protected
protected string $last_tag_open = ''
Last tag open
- Visibility: protected
protected string $last_tag_close = ''
Last tag close
- Visibility: protected
protected string $first_url = ''
First URL
An alternative URL for the first page
- Visibility: protected
protected string $cur_tag_open = '<strong>'
Current tag open
- Visibility: protected
protected string $cur_tag_close = '</strong>'
Current tag close
- Visibility: protected
protected string $next_tag_open = ''
Next tag open
- Visibility: protected
protected string $next_tag_close = ''
Next tag close
- Visibility: protected
protected string $prev_tag_open = ''
Previous tag open
- Visibility: protected
protected string $prev_tag_close = ''
Previous tag close
- Visibility: protected
protected string $num_tag_open = ''
Number tag open
- Visibility: protected
protected string $num_tag_close = ''
Number tag close
- Visibility: protected
protected boolean $page_query_string = FALSE
Page query string flag
- Visibility: protected
protected string $query_string_segment = 'per_page'
Query string segment
- Visibility: protected
protected boolean $display_pages = TRUE
Display pages flag
- Visibility: protected
protected string $_attributes = ''
Attributes
- Visibility: protected
protected array $_link_types = array()
Link types
"rel" attribute
- Visibility: protected
protected boolean $reuse_query_string = FALSE
Reuse query string flag
- Visibility: protected
protected boolean $use_global_url_suffix = FALSE
Use global URL suffix flag
- Visibility: protected
protected string $data_page_attr = 'data-ci-pagination-page'
Data page attribute
- Visibility: protected
protected object $CI
CI Singleton
- Visibility: protected
void CI_Pagination::__construct(array $params)
Constructor
- Visibility: public
- $params array - <p>Initialization parameters</p>
\CI_Pagination CI_Pagination::initialize(array $params)
Initialize Preferences
- Visibility: public
- $params array - <p>Initialization parameters</p>
string CI_Pagination::create_links()
Generate the pagination links
- Visibility: public
void CI_Pagination::_parse_attributes(array $attributes)
Parse attributes
- Visibility: protected
- $attributes array
string CI_Pagination::_attr_rel(string $type)
Add "rel" attribute
- Visibility: protected
- $type string