Property | Type | Description | |
---|---|---|---|
$cur_page | integer | Current page | |
$per_page | integer | Items per page |
Property | Type | Description | |
---|---|---|---|
$CI | object | CI Singleton | |
$_attributes | string | Attributes | |
$_link_types | array | "rel" attribute | |
$base_url | string | The page that we're linking to | |
$cur_tag_close | string | Current tag close | |
$cur_tag_open | string | Current tag open | |
$data_page_attr | string | Data page attribute | |
$display_pages | boolean | Display pages flag | |
$first_link | string | First link | |
$first_tag_close | string | First tag close | |
$first_tag_open | string | First tag open | |
$first_url | string | An alternative URL for the first page | |
$full_tag_close | string | Full tag close | |
$full_tag_open | string | Full tag open | |
$last_link | string | Last link | |
$last_tag_close | string | Last tag close | |
$last_tag_open | string | Last tag open | |
$next_link | string | Next link | |
$next_tag_close | string | Next tag close | |
$next_tag_open | string | Next tag open | |
$num_links | integer | Relates to "digit" type links shown before/after the currently viewed page. | |
$num_tag_close | string | Number tag close | |
$num_tag_open | string | Number tag open | |
$page_query_string | boolean | Page query string flag | |
$prefix | string | Prefix | |
$prev_link | string | Previous link | |
$prev_tag_close | string | Previous tag close | |
$prev_tag_open | string | Previous tag open | |
$query_string_segment | string | Query string segment | |
$reuse_query_string | boolean | Reuse query string flag | |
$suffix | string | Suffix | |
$total_rows | integer | Total number of items | |
$uri_segment | integer | URI Segment | |
$use_global_url_suffix | boolean | Use global URL suffix flag | |
$use_page_numbers | boolean | Whether to use actual page numbers instead of an offset |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) : void | Constructor | |
create_links ( ) : string | Generate the pagination links | |
initialize ( array $params = [] ) : CI_Pagination | Initialize Preferences |
Method | Description | |
---|---|---|
_attr_rel ( string $type ) : string | Add "rel" attribute | |
_parse_attributes ( array $attributes ) : void | Parse attributes |
public __construct ( array $params = [] ) : void | ||
$params | array | Initialization parameters |
return | void |
protected _parse_attributes ( array $attributes ) : void | ||
$attributes | array | |
return | void |
public create_links ( ) : string | ||
return | string |
public initialize ( array $params = [] ) : CI_Pagination | ||
$params | array | Initialization parameters |
return | CI_Pagination |
protected string $base_url | ||
return | string |
protected string $cur_tag_close | ||
return | string |
protected string $data_page_attr | ||
return | string |
protected bool $display_pages | ||
return | boolean |
protected string $first_tag_close | ||
return | string |
protected string $first_url | ||
return | string |
protected int $num_links | ||
return | integer |
protected bool $page_query_string | ||
return | boolean |
protected string $prev_tag_close | ||
return | string |
protected string $prev_tag_open | ||
return | string |
protected string $query_string_segment | ||
return | string |
protected bool $reuse_query_string | ||
return | boolean |
protected bool $use_global_url_suffix | ||
return | boolean |
protected bool $use_page_numbers | ||
return | boolean |